Esempio n. 1
0
        static void Main(string[] args)
        {
            //Samsung
            IChargeurUniversel chargeurSamsung = new SamsungChargeur();

            chargeurSamsung.Recharge();

            //Iphone
            IChargeurUniversel chargeurIphone = new IphoneChargeur();

            chargeurIphone.Recharge();
            Console.ReadLine();
        }
Esempio n. 2
0
 public IphoneAdapteur(IphoneChargeur iphone)
 {
     this._iphoneChargeur = iphone;
 }