Init de mon dépôt
This commit is contained in:
29
pakeje/Responsable.java
Normal file
29
pakeje/Responsable.java
Normal file
@@ -0,0 +1,29 @@
|
||||
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);
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user