Пример #1
0
        static void Main(string[] args)
        {
            Dog internetAwareDog    = new Dog();
            InternetConnection conn = new InternetConnection();

            conn.Connect(internetAwareDog);
        }
Пример #2
0
        static void Main(string[] args)
        {
            Dog internetawaredog    = new Dog();
            InternetConnection conn = new InternetConnection();

            conn.Connect(internetawaredog);
            Console.ReadKey();
        }