Question: Write a C++ program.Define a class bankAccount to implement the basic properties of a bank account. An object of this class should store the following
Write a C++ program.Define a class bankAccount to implement the basic properties of a bank account. An object of this class should store the following data: Account holders name (string), account number (int), account type (enumerated type, Checking/Savings), balance (double), and interest rate (double). Add appropriate member functions to manipulate an object deposit, withdraw, modify the interest rate, get the balance, and display the account using the overloaded operator cout. Use a static member in the class to automatically assign account numbers. The class should overload the assignment operator. It should also provide a copy constructor, a default constructor and a destructor.
Write a C++ program that uses the bankAccount class. Create 4 account objects with some data and manipulate these objects using the methods declared in the class.
Compile and run the program. Upload the .h and .cpp files along with the output to Blackboard.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
