Customerpublic class Customer extends Person
Fields Summary |
---|
private int | customerNumber |
Constructors Summary |
---|
public Customer(String firstName, String lastName, int number)
super(firstName, lastName);
setCustomerNumber(number);
|
Methods Summary |
---|
public void | setCustomerNumber(int n)
if (n < 1)
throw new IllegalArgumentException("Invalid customer number " + n);
customerNumber = n;
|
|