-
-
Notifications
You must be signed in to change notification settings - Fork 322
Expand file tree
/
Copy pathClerk.java
More file actions
32 lines (25 loc) · 634 Bytes
/
Clerk.java
File metadata and controls
32 lines (25 loc) · 634 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
package LMS;
public class Clerk extends Staff {
public int deskNo; //Desk Number of the Clerk
public static int currentdeskNumber = 0;
public Clerk(int id, String n, String a,int ph, double s,int dk) // para cons.
{
super(id,n,a,ph,s);
if(dk == -1)
{
deskNo = currentdeskNumber;
}
else
{
deskNo=dk;
}
currentdeskNumber++;
}
// Printing Clerk's Info
@Override
public void printInfo()
{
super.printInfo();
System.out.println("Desk Number: " + deskNo);
}
} // Clerk's Class Closed