23 lines
484 B
Java
23 lines
484 B
Java
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;
|
|
}
|
|
}
|