-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathCustomer.java
More file actions
35 lines (31 loc) · 1.04 KB
/
Copy pathCustomer.java
File metadata and controls
35 lines (31 loc) · 1.04 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
/**
* Represents a customer of Dough Jamaica.
* Stores essential customer contact and identification details.
*/
public class Customer {
public String customerID;
public String name;
public String phoneNumber;
public String email;
public String address;
public Customer(String customerID, String name, String phoneNumber, String email, String address) {
this.customerID = customerID;
this.name = name;
this.phoneNumber = phoneNumber;
this.email = email;
this.address = address;
}
public String getCustomerID() { return customerID; }
public String getName() { return name; }
public String getPhoneNumber() { return phoneNumber; }
public String getEmail() { return email; }
public String getAddress() { return address; }
@Override
public String toString() {
return "CustomerID: " + customerID +
" | " + name +
" | Phone: " + phoneNumber +
" | Email: " + email +
" | Address: " + address;
}
}