static void Main(string[] args) { //Samsung IChargeurUniversel chargeurSamsung = new SamsungChargeur(); chargeurSamsung.Recharge(); //Iphone IChargeurUniversel chargeurIphone = new IphoneChargeur(); chargeurIphone.Recharge(); Console.ReadLine(); }
public IphoneAdapteur(IphoneChargeur iphone) { this._iphoneChargeur = iphone; }