static void Main(string[] args) { FirstPart firstPart = new FirstPart(); firstPart.One(); firstPart.Two(); firstPart.Three(); firstPart.Four(); firstPart.Five(); InterfaceDemo interfaceDemo = new InterfaceDemo(); interfaceDemo._Main(); Door door = new PlusDoor(); door.OpenDoor(); door.CloseDoor(); door.Proof(); Console.ReadKey(); }
static void stop(InterfaceDemo s) { //logging s.stop(); }
// creating a start method which uses Interface InterfaceDemo like an datatype // to allow functionality of the start and stop methods to be used. static void start(InterfaceDemo m) { //logging m.start(); }