-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathetudiantalternance.java
More file actions
44 lines (38 loc) · 999 Bytes
/
Copy pathetudiantalternance.java
File metadata and controls
44 lines (38 loc) · 999 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
package ecole.etudiant;
public class etudiantalternance {
private int salaire;
private String nom;
private String prenom;
public etudiantalternance(int salaire ,String nom,String Prenom) {
this.salaire = salaire;
this.nom=nom;
this.prenom=prenom;
}
public int getSalaire(){
return salaire;
}
public void setSalaire(int salaire)
{
this.salaire=salaire;
}
public String getNom(){
return nom;
}
public void setNom(){
this.nom=nom;
}
public void setNom(String prenom) {
this.prenom = prenom;
}
public String getPrenom() {
return prenom;
}
public void ajouterAbsence(){
setSalaire(getSalaire()-50);
}
public String toString(){
return "Etudiant alternance {" +
"salaire='" + salaire + '\''+
'}';
}
}