efrei/uml-poo/etudiant/Apprenti.java

24 lines
484 B
Java
Raw Normal View History

2021-09-20 14:38:35 +02:00
public class Apprenti extends Etudiant implements ISalarie {
String entreprise = "Efrei";
double salaire = 21000;
public Apprenti(String nom, String promo, double salaire) {
super(promo, nom, true);
this.salaire = salaire;
}
public double getSalaire() {
return this.salaire;
}
@Override
public String getTypeContrat() {
return null;
}
@Override
public boolean isApprenti() {
return true;
}
2021-09-20 13:52:48 +02:00
}