Beispiel #1
0
        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();
        }
Beispiel #2
0
 static void stop(InterfaceDemo s)
 {
     //logging
     s.stop();
 }
Beispiel #3
0
 // 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();
 }