Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public class FixDebugCustomer
- {
- protected int idNumber;
- protected String name;
- protected double creditLimit;
- public FixDebugCustomer(int id, String name, double credit)
- {
- idNumber = id;
- this.name = name;
- creditLimit = credit; //changed first credit to creditLimit
- }
- public void display()
- {
- System.out.println("Customer #" + idNumber +
- " Name: " + name + "\nCredit limit $" + creditLimit); //added ;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement