Пример #1
0
        static void Main(string[] args)
        {
            House      house      = new House();
            Team       team       = new Team();
            TeamLeader teamLeader = new TeamLeader();

            for (int i = 0; i < 6; i++)
            {
                team.Work(house);
            }

            teamLeader.Work(house);
            Console.ReadKey();
        }
Пример #2
0
        static void Main(string[] args)
        {
            House      house      = new House();
            Team       team       = new Team();
            TeamLeader teamLeader = new TeamLeader();

            if (teamLeader.Work(house) == true)
            {
                Console.WriteLine("Строительство завершено");
            }
            else
            {
                Console.WriteLine("Строительство не завершено");
            }
        }