30 lines
815 B
Java
30 lines
815 B
Java
package pakeje;
|
|
|
|
import java.util.ArrayList;
|
|
|
|
public class Responsable extends Technicien {
|
|
private ArrayList<Technicien> listeSupervisions;
|
|
|
|
public Responsable() {
|
|
super();
|
|
listeSupervisions = new ArrayList<>();
|
|
}
|
|
|
|
public Responsable(String n, int ae) {
|
|
super(n, ae);
|
|
listeSupervisions = new ArrayList<>();
|
|
}
|
|
|
|
public void afficherInfos() {
|
|
System.out.println("~~~~~~~~~~~~~~~ Responsable ~~~~~~~~~~~~~~~");
|
|
System.out.println(" Nom : " + getNom());
|
|
System.out.println(" Années d'xp : " + getAnneesExperience());
|
|
System.out.println(" Nombre de supervisions : " + listeSupervisions);
|
|
System.out.println("~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~");
|
|
}
|
|
|
|
public void ajouterSupervisionBenite(Technicien supervisions) {
|
|
listeSupervisions.add(supervisions);
|
|
}
|
|
}
|