a Savings account
More...
a Savings account
This one of the two subclasses of Account. Savingsimplements the details of a savings account at our mythical bank.
Savings::Savings |
( |
unsigned |
accNo | ) |
|
|
inline |
virtual const char* Savings::type |
( |
| ) |
|
|
inlinevirtual |
type - return an indication of what type of Account the current object is
- Returns
- a string containing the name of the class
Reimplemented from Account.
bool Savings::withdrawal |
( |
double |
amount | ) |
|
|
virtual |
overload the Account::withdrawal() member
function to charge a $5.00 fee after the first withdrawals of the month
- Parameters
-
amount | double the amount to withdraw |
- Returns
- bool true if the withdrawal worked
Reimplemented from Account.
int Savings::noWithdrawals |
|
protected |
the number of withdrawals
The documentation for this class was generated from the following file: