Files
TP-JAVA/pakeje/Amphi.java

32 lines
567 B
Java
Raw Normal View History

2025-10-07 16:36:41 +02:00
package pakeje;
public class Amphi extends Salle {
private int hauteurSousPlafond;
public Amphi() {
super();
hauteurSousPlafond = 0;
}
public Amphi(int hsp) {
super();
hauteurSousPlafond = hsp;
}
public void afficherInfos() {
System.out.println("Amphi :");
super.afficherInfos();
System.out.println("Hauteur sous plafond : " + hauteurSousPlafond);
}
public int getHauteurSousPlafond() {
return hauteurSousPlafond;
}
public void setHauteurSousPlafond(int hauteurSousPlafond) {
this.hauteurSousPlafond = hauteurSousPlafond;
}
}