-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathCustomerInformation.java
More file actions
55 lines (50 loc) · 1.46 KB
/
CustomerInformation.java
File metadata and controls
55 lines (50 loc) · 1.46 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
/** Organizes customer information
*
* CustomerInformation Class
* @author Danny Guan
* @version 2
*/
public class CustomerInformation {
private int standardTickets;
private int VIPTickets;
private String email;
/** CustomerInformation Constructor.
*
* @param standardTickets - Number of standard ticket the customer wants.
* @param VIPTickets - Number of VIP tickets the customer wants.
* @param email - Email of the customer.
*/
public CustomerInformation(int standardTickets, int VIPTickets, String email){
this.standardTickets = standardTickets;
this.VIPTickets = VIPTickets;
this.email = email;
}
/** Returns the number of standard ticket requested
*
* @return standard ticket order
*/
public int GetTickets(){
return this.standardTickets;
}
/** Returns the number of VIP tickets requested
*
* @return VIP ticket order
*/
public int GetVIPTickets(){
return this.VIPTickets;
}
/** Returns the customers email
*
* @return customer email
*/
public String GetEmail(){
return this.email;
}
/** Returns the customers email and tickets requested
*
* @return customers email and ticket request
*/
public String toString(){
return("Email: " + email + ", # of Standard Tickets requested: " + standardTickets + " and # of VIP Tickets requested " + VIPTickets);
}
}