CSC-113-Lab.8 - KSU / CCIS / CS DEPARTMENT CSC-113, SPRING...

Info iconThis preview shows pages 1–2. Sign up to view the full content.

View Full Document Right Arrow Icon
KSU / CCIS / CS DEPARTMENT CSC-113, SPRING 2010 LAB 8 – EXCEPTIONS A bank manages many customers’ accounts. Each bank account can be a saving or a checking account. BankAccount Class. The class BankAccount provides three services. A method deposit () to add an amount to the current balance. A method withdraw () to subtract money from the account and ensure that the debit amount does not exceed the account’s balance. A method transfer() that deposit money to another account. CheckingAccount Class. The class CheckingAccount should inherit from base class BankAccount and include an additional data member transactionCount that represents the number of transaction processed. This class should redefine methods deposit () and withdraw () and implements a new method deductfees () that withdraw transactions fees from the account balance whenever the transaction is performed successfully and the number of transaction exceed 3. Such that the fee of one transaction is equal 2 riyals. Bank
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Image of page 2
This is the end of the preview. Sign up to access the rest of the document.

This note was uploaded on 11/28/2011 for the course COMPUTER S 113 taught by Professor Dr.safwanqasem during the Spring '11 term at King Saud University.

Page1 / 2

CSC-113-Lab.8 - KSU / CCIS / CS DEPARTMENT CSC-113, SPRING...

This preview shows document pages 1 - 2. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online