-
Notifications
You must be signed in to change notification settings - Fork 0
/
BaseCustomer.java
106 lines (88 loc) · 2.29 KB
/
BaseCustomer.java
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
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
/**
* The BaseCustomer class represents a base class for storing customer information.
* It provides methods to retrieve various details of a customer, such as name, phone number,
* email, number of people in reservation, date of reservation, and time of reservation.
*/
public abstract class BaseCustomer {
//protected String Name;
private String name;
private String num;
private String mail;
private int res;
private String date;
private String time;
private String ambiance;
public BaseCustomer(String name, String num, String mail, int res, String date, String time,String ambiance)
{
this.name= name;
this.num= num;
this.mail= mail;
this.res= res;
this.date= date;
this.time= time;
this.ambiance=ambiance;
}
/**
* Retrieves the phone number of the customer.
* @return The phone number.
*/
public String getnNum() {
return num;
}
/**
* Retrieves the email address of the customer.
* @return The email address.
*/
public String getMail() {
return mail;
}
/**
* Retrieves the number of people in the reservation.
* @return The number of people.
*/
public int getRes() {
return res;
}
/**
* Retrieves the date of the reservation.
* @return The date of the reservation.
*/
public String getDate() {
return date;
}
/**
* Retrieves the time of the reservation.
* @return The time of the reservation.
*/
public String getTime() {
return time;
}
/**
* Retrieves the name of the customer.
* @return The name of the customer.
*/
public String getName() {
return name;
}
public String getAmbiance(){
return ambiance;
}
public String setName(String name){
return name;
}
public String setnNum(String num){
return num;
}
public String setMail(String Mail){
return mail;
}
public int setRes(int Res){
return res;
}
public String setDate(String newDate){
return date;
}
public String setTime(String time){
return time;
}
}