can one constructor has two methods or we have to use inheritance ??
The account class was defined to model a bank account. An account has the properties account number, balance, annual interest rate, and date created, and methods to deposit and withdraw funds. Create two subclasses for checking and saving accounts. A checking account has an overdraft limit, but a saving account cannot be overdrawn. Write a test program that create objects Account, SavingAccount and CheckingAccount.
base on this question,is it asking me to inherit savingAccount to Account and CheckingAccount to SavingAccount??in the other word,is this has to do with abstraction??
can one constructor has two methods??
Started by farhanyun91, Oct 01 2010 06:32 AM
1 reply to this topic


Sign In
Create Account


Back to top









