Monday, January 1, 2018

Write a program in C++ to define the class bank shown below. Create an array of n objects and display the objects' details.

Aim : Write a program in C++ to define the class bank shown below. Create an array of n objects and display the objects' details.

class bank { 
private :
    Accno integer.
    Name character 20
    Acctype character 1 ('s','c') use enum
    Balance float
Public:
    Initial();
    Deposit();
    Withdrawl();
    Balance();
    Display();

}

CODE:

OUTPUT:


No comments:

Post a Comment