Esempio n. 1
0
        static void Main(string[] args)
        {
            lampe Living    = new lampe();
            lampe Toilettes = new lampe();

            interrupteur interLiving = new interrupteur(Living);

            interLiving.on();
            interLiving.off();

            //Living.allume();
            //Living.eteint();

            Console.ReadLine();
        }
Esempio n. 2
0
 public interrupteur(lampe MaLampe)
 {
     this.MaLampe = MaLampe;
     OnOff        = "off";
     Console.WriteLine("Creation inter: etat :" + this.OnOff);
 }
Esempio n. 3
0
 //constructeur
 public interrupteur(lampe MaLampe)
 {
     this.MaLampe = MaLampe;
     OnOff        = "OFF";
     Console.WriteLine("Crétaion interrupteur: etat: " + this.OnOff);
 }