コード例 #1
0
        public static void Main(string[] args)
        {
            var userInterfaceZoo = new UserInterfaceZoo();
            var zoo = new Zoo("Moscow zoo");

            userInterfaceZoo.Draw(zoo);
            Console.ReadLine();
        }
コード例 #2
0
ファイル: Zoo.cs プロジェクト: DustofTimeYT/Smirnov-Mikhail
        public void Draw()
        {
            var userInterface = new UserInterfaceZoo();

            Console.WriteLine($"Zoo: {Name}");
            Console.WriteLine($"Animals:");
            userInterface.Draw(Animals());
            Console.WriteLine($"Peoples:");
            userInterface.Draw(Peoples());
            Console.WriteLine($"Objects:");
            userInterface.Draw(Objects());
        }