-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathManager.java
60 lines (49 loc) · 1.15 KB
/
Manager.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
/*
* **********************************************
* San Francisco State University
* CSC 220 - Data Structures
* File Name: Manager.java
* Author: Duc Ta
* Author: Bryan Khor
* **********************************************
*/
package CSC220ASMT2;
public final class Manager extends Person {
//
// Instance Data Fields
//
private String firstName;
private String lastName;
//
// Constructors
//
public Manager() {
}
public Manager(String firstName, String lastName) {
super(firstName, lastName);
}
//
// Instance Methods
//
@Override
public String getFirstName() {
return super.getFirstName();
}
@Override
public void setFirstName(String firstName) {
super.setFirstName(firstName);
}
@Override
public String getLastName() {
return super.getLastName();
}
@Override
public void setLastName(String lastName) {
super.setLastName(lastName);
}
// Additional Methods
@Override
public void sayGreeting(String string) {
System.out.println("SF GIANTS: Welcome to the SAN FRANCISCO GIANTS!");
}
}