Using system;
Namespace pattern {/// /// summary description for class1. /// summary> public class adapter: Circle, Draw {public adapter () {// // Todo: add constructor logic here //} Public void Drawequal () {system.console.writeline ("Draw Equal");}} public class circle {public circle () {} public void Drawcircle () {system.console.writeline ("DRAW CIRCLE");}} Public interface draw {void drawcircle (); void drawEqual ();
} // Adapter mode // adapter a = new adapter (); // a.drawcircle (); // a.drawequal ();