public AndroidRecharger() { Console.WriteLine("Recharging Android Phone with Generic Recharger\n"); phone = new Android(); phone.UseMicroUsb(); phone.Recharge(); Console.WriteLine("Android Phone Ready for use\n"); }
public MicroUsbRecharger() { Console.WriteLine("Recharging iPhone with Generic Recharger\n"); phone = new IPhone(); phoneAdapter = new IPhoneAdapter(phone); phoneAdapter.UseMicroUsb(); phoneAdapter.Recharge(); Console.WriteLine("iPhone Ready for use\n"); }