Esempio n. 1
0
        static void Main(string[] args)
        {
            Person vanya = new Person("Vanya");
            Person petya = new Person("Petya");
            Person borya = new Person("Borya");

            List <Person> workers = new List <Person> {
                vanya, petya, borya
            };
            Office office1 = new Office(workers);

            petya.GoToWork();
            vanya.GoToWork();
            borya.GoToWork();


            petya.GoHome();
            vanya.GoHome();
            borya.GoHome();

            Console.ReadKey();
        }