コード例 #1
0
        public static void Main()
        {
            var pearComp  = new PearComputers();
            var samunComp = new SamunComputers();

            Gsm firstPhone  = pearComp.ManufactureGsm();
            Gsm secondPhone = samunComp.ManufactureGsm();

            PrintGsmInfo(firstPhone);
            firstPhone.Start();

            Console.WriteLine();

            PrintGsmInfo(secondPhone);
            secondPhone.Start();
        }
コード例 #2
0
        public static void Main()
        {
            var pearComp = new PearComputers();
            var samunComp = new SamunComputers();

            var firstPhone = pearComp.ManufactureGsm();
            var secondPhone = samunComp.ManufactureGsm();

            PrintGsmInfo(firstPhone);
            firstPhone.Start();

            Console.WriteLine();

            PrintGsmInfo(secondPhone);
            secondPhone.Start();
        }