// Bank accounts // (c) 2010 Viera K. Proulx // to represent a bank account public abstract class Account { public int accountNum; //Must be unique public int balance; //Must remain above zero public String name; //Name of account // the constructor public Account(int accountNum, int balance, String name){ this.accountNum = accountNum; this.balance = balance; this.name = name; } /* TEMPLATE FIELDS: ... this.accountNum ... -- int ... this.balance ... -- int ... this.name ... -- String METHODS: METHODS FOR FIELDS: */ }