// Savings accounts // (c) 2010 Viera K. Proulx // to represent a savings account in a bank public class Savings extends Account{ public double interest; // The interest rate at which their money grows. // the constructor public Savings(int accountNum, int balance, String name, double interest){ super(accountNum, balance, name); this.interest = interest; } /* TEMPLATE FIELDS: ... this.accountNum ... -- int ... this.balance ... -- int ... this.name ... -- String ... this.interest ... -- double METHODS: METHODS FOR FIELDS: */ }