예제 #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!");
        }