-
Notifications
You must be signed in to change notification settings - Fork 27
Expand file tree
/
Copy pathCustomer.java
More file actions
33 lines (27 loc) · 825 Bytes
/
Customer.java
File metadata and controls
33 lines (27 loc) · 825 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
package first;
public class Customer {
private static int nextCustomerNumber = 1;
private int customerNumber;
private String name;
private Address address;
public Customer(String name, Address address) {
this.customerNumber = nextCustomerNumber++;
this.name = name;
this.address = address;
}
public int getCustomerNumber() {
return customerNumber;
}
public String getName() {
return name;
}
public void setName(String name) {
this.name = name;
}
public Address getAddress() {
return address;
}
public void setAddress(Address address) {
this.address = address;
}
}