// Line of Credit accounts // (c) 2010 Viera K. Proulx // to represent a credit line account public class Credit extends Account{ public int creditLine; //The total amount of money they may have access to. public double interest; //The APR at which they are charged // the constructor public Credit(int accountNum, int balance, String name, int creditLine, double interest){ super(accountNum, balance, name); this.creditLine = creditLine; this.interest = interest; } /* TEMPLATE FIELDS: ... this.accountNum ... -- int ... this.balance ... -- int ... this.name ... -- String ... this.creditLine ... -- int ... this.interest ... -- double METHODS: METHODS FOR FIELDS: */ }