static void Main() { ITarget tClass = new ClassAdapter(); tClass.Implement(); Console.WriteLine("**************************"); ITarget tObj = new ObjectAdapter(new Adaptee()); tObj.Implement(); }
static void Main() { ITarget tClass = new ClassAdapter(); tClass.Implement(); Console.WriteLine("**************************"); ITarget tObj = new ObjectAdapter(new Adaptee()); tObj.Implement(); }