Advertisement
Guest User

SuperClass

a guest
Nov 25th, 2014
179
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.48 KB | None | 0 0
  1. public class FixDebugCustomer
  2. {
  3. protected int idNumber;
  4. protected String name;
  5. protected double creditLimit;
  6. public FixDebugCustomer(int id, String name, double credit)
  7. {
  8. idNumber = id;
  9. this.name = name;
  10. creditLimit = credit; //changed first credit to creditLimit
  11. }
  12. public void display()
  13. {
  14. System.out.println("Customer #" + idNumber +
  15. " Name: " + name + "\nCredit limit $" + creditLimit); //added ;
  16. }
  17. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement