CheckingAccount - { double total = 0; if (numChecks <=0)...

Info iconThis preview shows page 1. Sign up to view the full content.

View Full Document Right Arrow Icon
public class CheckingAccount extends Account { private int numChecks; public CheckingAccount(String owner, int number) { super(owner, number); } public CheckingAccount(String owner, int number, double balance, int numChecks) { super(owner, number, balance); this.numChecks = numChecks; } public void checkTransaction(double amount)
Background image of page 1
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: { double total = 0; if (numChecks <=0) { System.out.println("No more checks"); } else { total= getBalance()-amount; setBalance(total); numChecks--; } } public String toString() { String ret = super.toString()+ "Number of Checks: " +numChecks; return ret; } }...
View Full Document

This note was uploaded on 03/25/2010 for the course CIS CIS3023 taught by Professor Seema during the Spring '10 term at Florida College.

Ask a homework question - tutors are online