Class Hierarchy
This class must extend the FixedTermSavingsAccount
class.
Methods
This class must contain the following methods. It may contain other methods as well.
Constructors:
The getAccountID Method:
getAccountID
that has no parameters and returns an int
. The return
value should be 20000 plus the account number.
The withdraw Method:
withdraw
that is passed a double
(the amount of the withdrawal)
and does not return anything.
If the value of the parameter is negative this method should do nothing. In addition, if the value of this parameter exceeds the balance this method should do nothing. Otherwise, it should reduce the balance by the value of the parameter.
Copyright 2010