示例#1
0
        static void Main(string[] args)
        {
            ElectricPhone myPhone = new ElectricPhone();

            myPhone.Ring();
            DigitalPhone myDigitalPhone = new DigitalPhone();

            myDigitalPhone.Ring();
            TalkingPhone myTalkingPhone = new TalkingPhone();

            myTalkingPhone.Ring();
        }
示例#2
0
        static void Main(string[] args)
        {
            ElectricPhone myPhone = new ElectricPhone();

            myPhone.Ring();
        }