1 abstract public class Account {
2 double balance;
3 String name;
4
5 public double getBalance(){
6 return balance;
7 }
8
9 public void setBalance(double val){
10 balance = val;
11 }
12
13 public String getName(){
14 return name;
15 }
16
17 public void setName(String aName){
18 name = aName;
19 }
20
21 public boolean deposit(double amount){
22 balance = balance + amount;
23 return true;
24 }
25
26 abstract public boolean withdraw(double amount);
27 abstract public void display();
28
29 }
Generated with
vim2html
Copyright © 2003-2004 by Chip Cuccio
<http://norlug.org/~chipster/finger>