Session 08 Activity Inheritance
Session 08 Activity Inheritance
Problem Statement 1:
Create a class BankAccount to store following information which will act as base class.
Problem Statement 2:
Create a class CheckingAccount to store following information which will act as child class of BankAccount.
Methods
Name Purpose Arguments Return type
processCheck Verifies checkNumber should checkNumber(String) Check
be exact six numbers 7 then bankName(String)
processes the check
withdrawl Override the Withdrawal amount(Double) Void
limit by 1000000
Parameterized constructor Object Instantiation No of member variable NA
Problem Statement 3:
Create a class Check to store following information about checks.
Methods
Name Purpose Arguments Return type
Parameterized constructor Object Instantiation No of member variable NA
Problem Statement 4:
Create a class SavingsAccount to store following information which will act as child class of BankAccount.
Methods
Name Purpose Arguments Return type
depositMonthyInterest Return the monthly interest NA Check
amount balance using annual
interest rate
withdrawl Override the Withdrawal amount(Double) Void
limit by 500000
Parameterized constructor Object Instantiation No of member variable NA