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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started