public class CheckingAccount extends BankAccount {
    /** if you get interest from your checking account, you have to pay monthly
    charge */
    private boolean interest; 
    /** constructor */
    public CheckingAccount(String name,  int saving, boolean interest) {
	super(name, saving);
	this.interest = interest;
    }
    /** constructor */
    public CheckingAccount(String name, boolean interest) {
	this(name,0,interest);
    }
    
    /** get monthly charge */
    public int getMonthlyCharge() {
	if(interest == true) {
	    return 5;
	} else {
	    return 0;
	}
    }
    
    public String showInfo() {
	String newLine;
	if(interest) {
	    newLine = "This account has interest.";
	} else {
	    newLine = "This account does not have interst.";
	}
	return super.showInfo() + "\n" + newLine;
    }
	       
}
    
