-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathAdministrator.java
More file actions
45 lines (44 loc) · 956 Bytes
/
Administrator.java
File metadata and controls
45 lines (44 loc) · 956 Bytes
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
public class Administrator implements User
{
/**
* Administrator constructor
* @param the id number
* @param the first name
* @param the last name
*/
public Administrator(String id, String fname, String lname)
{
this.id = id;
this.fname = fname;
this.lname = lname;
}
/**
* getId returns id number
* @return the id number
*/
public String getID(){
return id;
}
/**
* getfname returns first name
* @return the first name
*/
public String getFirstName(){
return fname;
}
/**
* getlname returns last name
* @return the last name
*/
public String getLastName(){
return lname;
}
public double getSalary()
{
return salary;
}
private String id;
private String fname;
private String lname;
private double salary;
}