Question: Create the project in C++ program with the following modifications: Separate the Class header section into .h file: BankAccount.h Separate the Class method implementation into
Create the project in C++ program with the following modifications:
Separate the Class header section into .h file: BankAccount.h
Separate the Class method implementation into a .cpp file: BankAccount.cpp
Create a UserBankAccount.cpp class that instantiates BankAccounts and calls the deposit, withdraw, and getBalance methods
The project should have three files:
1. BankAccount.h:
Constructor prototypes (default and one with balance parameter)
Balance private member variables
Public method prototypes
2. BankAccount.cpp:
Constructor Implementations (BanAccount(), BankAccount(double))
Method Implementations (deposit(double), withdraw(double), getBlance())
3. UserBankAccount.cpp:
Instantiate 4 BankAccount Objects, 2 using the default constructor, 2 by passing in a balance amount
Perform various deposits and withdrawals from each account
Print out each accounts final balance to the console
Pause the console
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
