-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathCustomer.java
More file actions
41 lines (33 loc) · 1.09 KB
/
Customer.java
File metadata and controls
41 lines (33 loc) · 1.09 KB
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
34
35
36
37
38
39
40
41
import java.io.Serializable;
public class Customer extends Person implements Serializable {
private static final long serialVersionUID = 1L;
private Customer customerLink;
private int customerID;
public Customer() {
super();
this.customerID = 0;
this.customerLink = null;
}
public Customer(Customer customer, Customer link) {
super(customer.getAge(), customer.getName());
this.customerID = customer.getCustomerID();
this.customerLink = link;
}
public Customer(int age, String name, int customerID, Customer customerLink) {
super(age, name);
this.customerLink = customerLink;
this.customerID = customerID;
}
public int getCustomerID() {
return this.customerID;
}
public void setCustomerID(int customerID) {
this.customerID = customerID;
}
public Customer getCustomerLink() {
return this.customerLink;
}
public void setCustomerLink(Customer customerLink) {
this.customerLink = customerLink;
}
}