Advertisement
illpastethat

Mortgage for valkrist

Nov 12th, 2012
211
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.44 KB | None | 0 0
  1. import java.lang.*;
  2.  
  3.    public abstract class Mortgage {
  4.       private double principal, interest, term;
  5.      
  6.       public Mortgage() {
  7.          balance = 0;
  8.       }
  9.       public Mortgage(double x, double y, double z) {
  10.          principal = x;
  11.     interest = y;
  12.     term = z;
  13.       }
  14.       public void setPrincipal(double x) {
  15.          principal = x;
  16.       }
  17.       public double getPrincipal() {
  18.          return principal;
  19.       }
  20. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement