Files
TP-JAVA/pakeje/AppOuvertures.java
2025-10-07 16:45:43 +02:00

35 lines
661 B
Java

package pakeje;
public class AppOuvertures {
public static void main(String[] args) {
// TODO Auto-generated method stub
Amphi a1 = new Amphi();
Ouverture o1, o2;
Fenetre f1 = new Fenetre(50, "ZERDUIO", true);
Technicien t1 = new Technicien("Jason", 18);
Batiment b1 = new Batiment ("Le meilleur batiment");
a1.setNumero(5);
a1.setHauteurSousPlafond(600);
o1 = new Ouverture(90,"RSEDTFY");
o2 = new Ouverture(40,"RFDTFY");
a1.ajouterOuvertures(o1);
a1.ajouterOuvertures(o2);
a1.ajouterOuvertures(f1);
a1.afficherInfos();
b1.afficherInfos();
b1.ajouterSalle(a1);
}
}