示例#1
0
        static void Inhritance()
        {
            ModelXTerminal terminal = new ModelXTerminal("123");

            terminal.Connect();

            Console.ReadLine();
        }
示例#2
0
        static void InheritanceRealisation()
        {
            ModelXTerminal terminal = new ModelXTerminal("123");

            terminal.Connect();

            Console.WriteLine($"Show Terminal Actions]");
        }
示例#3
0
        static void InheritanceDemo()
        {
            ModelXTerminal xTerminal = new ModelXTerminal("mx01");

            xTerminal.Connect();
            ModelYTerminal yTerminal = new ModelYTerminal("my02");

            yTerminal.Connect();
        }