0% found this document useful (0 votes)
22 views2 pages

CSCP 1024 Object Oriented Paradigm: Graded Lab 5

The document describes an object-oriented programming lab assignment involving creating base and derived banking account classes. The base BankAccount class defines common properties and methods, while the derived SavingsAccount and CheckingAccount classes extend this with interest rate and transaction fee functionality respectively.

Uploaded by

Tayyaba Kashif
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOC, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
22 views2 pages

CSCP 1024 Object Oriented Paradigm: Graded Lab 5

The document describes an object-oriented programming lab assignment involving creating base and derived banking account classes. The base BankAccount class defines common properties and methods, while the derived SavingsAccount and CheckingAccount classes extend this with interest rate and transaction fee functionality respectively.

Uploaded by

Tayyaba Kashif
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOC, PDF, TXT or read online on Scribd
You are on page 1/ 2

CSCP 1024 Object Oriented Paradigm

Graded Lab 5

Faculty of Information Technology


UCP Lahore Pakistan

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:

 fee charged per transaction

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.

You might also like