home *** CD-ROM | disk | FTP | other *** search
- class SavingsAccount extends BankAccount {
- private static int m_nNextAccountNo = 100001;
- private int nAccountNo;
-
- public int AccountNo() {
- return this.nAccountNo;
- }
-
- SavingsAccount(double dInitialBalance) {
- super(dInitialBalance);
- this.nAccountNo = m_nNextAccountNo++;
- }
-
- public void Fee() {
- if (((BankAccount)this).Balance() < (double)200.0F) {
- super.Fee();
- }
-
- }
- }
-