32 lines
567 B
Java
32 lines
567 B
Java
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;
|
|
}
|
|
|
|
}
|