Esempio n. 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();
        }
Esempio n. 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("Строительство не завершено");
            }
        }