1:public class SavingAccount extends BankAccount { 2: private static double interestRate; 3: /** constructor */ 4: public SavingAccount(String name, int saving) { 5: super(name, saving); 6: } 7: /** constructor */ 8: public SavingAccount(String name) { 9: super(name); 10: } 11: 12: /** get interest */ 13: public double getInterest() { 14: return saving*interestRate; 15: } 16: 17: public static double getInterestRate() { 18: return interestRate; 19: } 20: 21: public static void setInterestRate(double newInterestRate) { 22: interestRate = newInterestRate; 23: } 24: 25: public String showInfo() { 26: return super.showInfo() + "\nInterest Rate : " + interestRate; 27: } 28:}