CSCP 1024 Object Oriented Paradigm: Graded Lab 5
CSCP 1024 Object Oriented Paradigm: Graded Lab 5
Graded Lab 5
1
TASK 1:
Create a base class, called BankAccount, and two additional classes (each derived from BankAccount), called
SavingsAccount and CheckingAccount.
BankAccount:
Title
AccountNumber
Balance
Deposit()
Withdraw()
SavingAccount:
InterestRate
CalculateInterest()
CheckingAccount:
Class CheckingAccount should redefine member functions withdraw and deposit so that they subtract the fee
from the account balance whenever either transaction is performed successfully.
You will then test the operations of each class in function main() to simulate the transactions of both a checking
account and a savings account.