-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathCustomer.java
More file actions
61 lines (45 loc) · 1.34 KB
/
Copy pathCustomer.java
File metadata and controls
61 lines (45 loc) · 1.34 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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
package carbookingsystem1;
public class Customer {
private String customer_email;
private String customerID;
private String phone;
private String name;
public Customer(String customer_email, String customerID, String phone, String name) {
setCustomer_email(customer_email);
setCustomerID(customerID);
setPhone(phone);
setName(name);
}
public Customer() {
this("", "", "", "");
}
// Setters and Getters for all attributes
public String getCustomer_email() {
return customer_email;
}
public void setCustomer_email(String customer_email) {
this.customer_email = customer_email;
}
public String getCustomerID() {
return customerID;
}
public void setCustomerID(String customerID) {
this.customerID = customerID;
}
public String getPhone() {
return phone;
}
public void setPhone(String phone) {
this.phone = phone;
}
public String getName() {
return name;
}
public void setName(String name) {
this.name = name;
}
@Override
public String toString() {
return String.format("email: %s%n customer ID: %s%n phone number: %s%n name: %s%n ", customer_email, customerID, phone, name);
}
}