Budget5
 All Classes Files Functions Variables Typedefs
Checking Class Reference

the unique properties of a checking account. More...

Inheritance diagram for Checking:
Account

Public Member Functions

 Checking (unsigned accNo)
 
virtual bool withdrawal (double amount)
 withdrawal - a withdrawal from checking account More...
 
virtual const char * type ()
 type - return an indication of what type of Account the current object is More...
 

Additional Inherited Members

Detailed Description

the unique properties of a checking account.

The majority of the properties are in the base class Account. This one of the two subclasses of Account. Savings implements the details of a savings account at our mythical bank.

Constructor & Destructor Documentation

Checking::Checking ( unsigned  accNo)
inline

Member Function Documentation

virtual const char* Checking::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 Checking::withdrawal ( double  amount)
virtual

withdrawal - a withdrawal from checking account

A checking account differs from a standard account in that it charges 20 cents per withdrawal if the balance falls below $500.

Parameters
amountamount to withdraw
Returns
bool true if the withdrawal works

Reimplemented from Account.


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