Пример #1
0
        static void Main(string[] args)
        {
            Cat cat = new Cat("Кокос", new DateTime(2015, 02, 10));

            cat.MakeNoise();

            Cat cat2 = new Cat("Фисташка", new DateTime(2019, 11, 1));

            cat2.MakeNoise();

            CatSmartHouse catHouse = new CatSmartHouse(900);

            catHouse.AddCat(cat);
            catHouse.AddCat(cat2);

            CommandCenter CC = new CommandCenter(catHouse);
        }
Пример #2
0
 public CommandCenter(CatSmartHouse CatHouse)
 {
     CatSmartHouse = CatHouse;
     WaitCommand();
 }