-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCashier.java
47 lines (44 loc) · 842 Bytes
/
Cashier.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
/**
* Cashier class containing number of cashiers and their sallary
*
* @Lekso Borashvili
* @version (a version number or a date)
*/
public class Cashier extends Staff
{
private int number;
private double sallary;
/**
* sets the sallary of cashiers
* @param x amount of sallary
*/
public void setSallary(double x)
{
sallary=x;
}
/**
* returns the amount of sallary
* @return sallary amount of sallary
*/
public double getSallary()
{
return sallary;
}
/**
* sets the number of cashiers
* @param a number of cashiers
*
*/
public void setNumberofCashiers(int a)
{
number=a;
}
/**
* returns number of cashiers
* @return number of cashiers
*/
public int getNumberofCashiers()
{
return number;
}
}