All pastes #374986 Raw Edit

Untitled

public text v1 · immutable
#374986 ·published 2007-02-27 22:27 UTC
rendered paste body
public class Student extends Customer {

	//Constants
	private static final double SAVINGS_INTEREST = .05; // 5%
	private static final double CHECK_INTEREST = .00; //no interest
	private static final double CHECK_CHARGE = .50; //cents
	private static final double OVERDRAFT_PENALTY = 30.00; //dollars 
	
	/**
	Constructor
	*/
	public Student (String name, String address, int age, String telephoneNumber, String customerNumber) {
		super(name, address, age, telephoneNumber, customerNumber);
	}

	/**
	Returns the value of the interest on savings
	*/
	public double getSavingsInterest() {
		return SAVINGS_INTEREST;
	}
	
	/**
	Returns the value of the interest on checks
	*/
	public double getCheckInterest() {
		return CHECK_INTEREST;
	}
	
	/**
	Returns the charge per check used, in cents.
	*/
	public double getCheckCharge() {
		return CHECK_CHARGE;
	}
	
	/**
	Returns the amount paid for overdrafts, in dollars.
	*/
	public double getOverdraftPenalty() {
		return OVERDRAFT_PENALTY;
	}
}