-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathFrontOffice.java
66 lines (53 loc) · 1.64 KB
/
FrontOffice.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
/*
* **********************************************
* San Francisco State University
* CSC 220 - Data Structures
* File Name: FrontOffice.java
* Author: Duc Ta
* Author: Bryan Khor
* **********************************************
*/
package CSC220ASMT2;
public final class FrontOffice {
//
// Constructors
//
public FrontOffice() {
}
public FrontOffice(Manager manager, GeneralManager generalManager, President president) {
this.manager = new Manager();
this.generalManager = new GeneralManager();
this.president = new President();
}
// Objects
Manager manager = new Manager();
GeneralManager generalManager = new GeneralManager();
President president = new President();
//
// Instance Methods
//
public void setManagerName(String firstName, String lastName) {
manager.setFirstName(firstName);
manager.setLastName(lastName);
}
public String getManagerName() {
return manager.getFirstName() + " " + manager.getLastName();
}
public void setGeneralManagerName(String firstName, String lastName) {
generalManager.setFirstName(firstName);
generalManager.setLastName(lastName);
}
public String getGeneralManagerName() {
return generalManager.getFirstName() + " " + generalManager.getLastName();
}
public void setPresidentName(String firstName, String lastName) {
president.setFirstName(firstName);
president.setLastName(lastName);
}
public String getPresidentName() {
return president.getFirstName() + " " + president.getLastName();
}
//
// Language
//
}