Question: Perform the follwing code in C++ language ! Define a class for a bank account that includes the following data members: Name of the depositor
Define a class for a bank account that includes the following data members: Name of the depositor Account number Type of account Balance amount in the account The class also contains the following member functions: A constructor to assign initial values. Deposit Function to deposit some amount. It should accept amount in parameter. Withdraw Function to withdraw an amount after checking the balance. It should accept amount as parameter. Display Function to display name and balance. Overload Binary + operator that adds the balance of one account to another account. It should accept an object as parameter and adds the values of parameter to the calling object
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
