-
Notifications
You must be signed in to change notification settings - Fork 0
/
CompanyStructure.java
30 lines (28 loc) · 1.24 KB
/
CompanyStructure.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
public class CompanyStructure {
public static void main(String[] args) {
TechnicalLead CTO = new TechnicalLead("Satya Nadella");
SoftwareEngineer seA = new SoftwareEngineer("Kasey");
SoftwareEngineer seB = new SoftwareEngineer("Breana");
SoftwareEngineer seC = new SoftwareEngineer("Eric");
CTO.addReport(seA);
CTO.addReport(seB);
CTO.addReport(seC);
System.out.println(CTO.getTeamStatus());
TechnicalLead VPofENG = new TechnicalLead("Bill Gates");
SoftwareEngineer seD = new SoftwareEngineer("Winter");
SoftwareEngineer seE = new SoftwareEngineer("Libby");
SoftwareEngineer seF = new SoftwareEngineer("Gizan");
SoftwareEngineer seG = new SoftwareEngineer("Zaynah");
VPofENG.addReport(seD);
VPofENG.addReport(seE);
VPofENG.addReport(seF);
VPofENG.addReport(seG);
System.out.println(VPofENG.getTeamStatus());
BusinessLead CFO = new BusinessLead("Amy Hood");
Accountant actA = new Accountant("Niky");
Accountant actB = new Accountant("Andrew");
CFO.addReport(actA, CTO);
CFO.addReport(actB, VPofENG);
System.out.println(CFO.getTeamStatus());
}
}