static void Main(string[] args) { #region 手機爆炸 KoreaPlugin p = new KoreaPlugin(); int power = p.Power(); MyPhone phone = new MyPhone(); phone.Fill_Cellphone(power); #endregion ; PlugAdapter adapter = new PlugAdapter(new KoreaPlugin()); int power_safe = adapter.Power(); phone.Fill_Cellphone(power_safe); Console.ReadKey(); }
/// <summary> /// /// </summary> /// <param name="plugin"></param> public PlugAdapter(KoreaPlugin plugin) { _plugin = plugin; }