CheckAccount Class Reference

A specialization of BankAccount. More...

Inherits BankAccount.

Collaboration diagram for CheckAccount:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 CheckAccount (string o, double ir)
 A constructor that constructs a CheckAccount on the basis of an owner and the interestrate.
 CheckAccount (string o, decimal b, double ir)
 A constructor that constructs a CheckAccount on the basis of an owner, balance, and the interestrate.
override void Withdraw (decimal amount)
 Withdraw an amount from the check account.
override string ToString ()
 Returns a string which represents the account.

Detailed Description

A specialization of BankAccount.

Definition at line 6 of file check-account.cs.


Constructor & Destructor Documentation

CheckAccount.CheckAccount ( string  o,
double  ir 
)

A constructor that constructs a CheckAccount on the basis of an owner and the interestrate.

Parameters:
o The owners name
ir The interestrate

Definition at line 12 of file check-account.cs.

CheckAccount.CheckAccount ( string  o,
decimal  b,
double  ir 
)

A constructor that constructs a CheckAccount on the basis of an owner, balance, and the interestrate.

Parameters:
o The owners name
b The initial balance of the account
ir The interestrate

Definition at line 21 of file check-account.cs.


Member Function Documentation

override string CheckAccount.ToString (  ) 

Returns a string which represents the account.

Reimplemented from BankAccount.

Definition at line 34 of file check-account.cs.

References BankAccount.balance, and BankAccount.owner.

override void CheckAccount.Withdraw ( decimal  amount  )  [virtual]

Withdraw an amount from the check account.

Parameters:
amount The amount withdrawn

Reimplemented from BankAccount.

Definition at line 27 of file check-account.cs.

References BankAccount.balance, and BankAccount.interestRate.


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

Generated on Thu Nov 5 13:38:15 2009 for BankAccounts with inheritance by  doxygen 1.6.1