Budget5
 All Classes Files Functions Variables Typedefs
Savings Class Reference

a Savings account More...

Inheritance diagram for Savings:
Account

Public Member Functions

 Savings (unsigned accNo)
 constructor More...
 
virtual bool withdrawal (double amount)
 overload the Account::withdrawal() member More...
 
virtual const char * type ()
 type - return an indication of what type of Account the current object is More...
 

Protected Attributes

int noWithdrawals
 

Additional Inherited Members

Detailed Description

a Savings account

This one of the two subclasses of Account. Savingsimplements the details of a savings account at our mythical bank.

Constructor & Destructor Documentation

Savings::Savings ( unsigned  accNo)
inline

constructor

Parameters
accNoaccount number

Member Function Documentation

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
amountdouble the amount to withdraw
Returns
bool true if the withdrawal worked

Reimplemented from Account.

Member Data Documentation

int Savings::noWithdrawals
protected

the number of withdrawals


The documentation for this class was generated from the following file: