Professional Documents
Culture Documents
OOadlab
OOadlab
Lab 06
Topic Static members, static functions, constant member and constant functions.
Objective/ Making students familiarize with the concepts of Static member, Static functions,
Outcome constant member and constant functions.
Note:
Task 1
Write a C++ program to make database for a bank to store account information of customers using class and
objects. Display the details such as name, accountNumber (constant), accountType (saving/current) and
balance in the given account number. Information of accounts will be store in a text file.
You have to write in file and store the info into array of objects.
You have to also maintain the count of the objects and display it in the main.
6. Write readFile and writeFile functions which should not be the members of class.
Page 1 of 2
File.txt
Ali 443000 saving 23045
Page 2 of 2