A specialization of BankAccount. More...
Inherits BankAccount.
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. |
A specialization of BankAccount.
Definition at line 6 of file check-account.cs.
CheckAccount.CheckAccount | ( | string | o, | |
double | ir | |||
) |
A constructor that constructs a CheckAccount on the basis of an owner and the interestrate.
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.
o | The owners name | |
b | The initial balance of the account | |
ir | The interestrate |
Definition at line 21 of file check-account.cs.
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.
amount | The amount withdrawn |
Reimplemented from BankAccount.
Definition at line 27 of file check-account.cs.
References BankAccount.balance, and BankAccount.interestRate.