gvsu/cs621/proj3/Loan.java
josh 2d591362ab initial import of /cs621/proj3 code
git-svn-id: svn://anubis/gvsu@69 45c1a28c-8058-47b2-ae61-ca45b979098e
2008-03-20 04:21:08 +00:00

29 lines
563 B
Java

public abstract class Loan
{
protected String m_name;
protected double m_interestRate;
protected int m_length;
protected double m_principal;
protected double m_monthlyPayment;
public Loan(String name, double rate, int years, double amount)
{
m_name = name;
m_interestRate = rate;
m_length = years;
m_principal = amount;
}
public String process()
{
calcMonthlyPayment();
return makeSummary();
}
public String makeSummary()
{
return "Summary!";
}
}