-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathEmploye.java
More file actions
44 lines (35 loc) · 929 Bytes
/
Copy pathEmploye.java
File metadata and controls
44 lines (35 loc) · 929 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
/** classe pour un employe */
public abstract class Employe {
protected String nom;
protected String prenom;
protected Poste emploi;
protected int salaire;
/** constructeur Employe
* @param nom de l'employé
* @param prenom de l'employé
* @param emploi poste occupé
*/
public Employe(String nom, String prenom, Poste emploi) {
this.nom=nom;
this.prenom=prenom;
this.emploi=emploi;
}
/**getter pour donner le nom de l'employe
* @return String le nom de l'employe
*/
public String getNom() {
return this.nom;
}
/** methode abstraite indiquant le salaire que va percevoir l'employé */
public void recevoirSalaire() {
}
/** methode abstraite affichant le salaire que va percevoir l'employé */
public void affichage() {
}
/**getter pour donner le prenom de l'employe
* @return String le prenom de l'employe
*/
public String getPrenom() {
return this.prenom;
}
}