init commint

This commit is contained in:
2025-10-07 16:55:57 +02:00
commit 71c8673b63
11 changed files with 341 additions and 0 deletions

20
Amphi.java Normal file
View File

@@ -0,0 +1,20 @@
package Monpack2;
public class Amphi extends Salle {
private int hauteurSousPlafond;
public int getHauteurSousPlafond() {
return hauteurSousPlafond;
}
public void setHauteurSousPlafond(int hauteurSousPlafond) {
this.hauteurSousPlafond = hauteurSousPlafond;
}
public void afficherInfos() {
System.out.println("Amphi : ");
super.afficherInfosOuvertures();//appel de la méthode de la classe mère
System.out.println("Hauteur sous plafond : " + hauteurSousPlafond);
}
}