示例#1
0
        static void Main(string[] args)
        {
            TV myTV  = new TV();
            TV myTV2 = new TV(42, "UE42N5002", true);
            TV myTV3 = new TV(myTV);

            myTV.ConnectTV();
            myTV.TurnONTV();


            Monitor myMonitor  = new Monitor();
            Monitor myMonitor2 = new Monitor(1, 2);
            Monitor myMonitor3 = new Monitor(myMonitor);

            myMonitor3.TurnOnMonitor();
            myMonitor3.AddMonitorBrighnest();
        }