Define a class in C++ (BANK ACCOUNT)


Declare a class to represent BANK ACCOUNT of 10 customers with the following data members. 

Private members:
  • Name of the depositor, 
  • account number, 
  • type of account, 
  • type of account (S for Savings and C for Current), 
  • balance amount.

Public members
The class also contains member functions to do the following:

  • ·         To initialize data members
  • ·         To deposit money
  • ·         To withdraw money after checking the balance. (Minimum balance is  Rs. 1000)
  • ·         To display the data members.



No comments

Post your comments

Powered by Blogger.