Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- class Customer{
- private String n;
- private double b;
- public Customer (String name, double bal){
- n=name;
- b=bal;
- }
- public String getName(){ return n;}
- public double getBalance(){ return b;}
- public String toString(){ return n+" has \t$"+b; }
- public void applyPercentageIncrease(double d) { b += d*b/100; }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement