static void Main(string[] args) { var twoPinPlug = new TwoPinPlug(); var threePinSocket = new ThreePinSocket(); var adapter = new Adapter(threePinSocket); adapter.PlugIntoTwoPinSocket(); }
static void Main(string[] args) { TwoPinPlug plug = new TwoPinPlug(); ThreePinPlug adapter = new Adapter(plug); adapter.Plug(); Console.ReadLine(); }
public Adapter(TwoPinPlug plug) { _plug = plug; }