示例#1
0
        static void Main(string[] args)
        {
            var fan = new DeskFan(new PowerSupply());

            Console.WriteLine(fan.Work());
            Console.ReadKey();
        }
示例#2
0
        static void Main(string[] args)
        {
            var fan = new DeskFan(new PowerSupply());

            Console.WriteLine(fan.Work());

            Console.WriteLine("Hello World!");
        }