예제 #1
0
        static void Main()
        {
            Worker   d1 = new Worker("Berik", 18, "male");
            Major    m1 = new Major("Anton", 23, "male");
            Dweller  d3 = new Dweller("Anna", 18, "female");
            Building b1 = new Building(200, "square");
            Dweller  d2 = new Dweller("", -10, "asass");
            Judge    j1 = new Judge("Anton", 23, "male");

            m1.Order("Work");
            d1.Work();
            d2.Show();
            j1.CreateLaw("Wake up at 5 AM");
            j1.CreateLaw("Do not watch TV");
            j1.ShowLaws();
            //j1.DeleteLaws();
            b1.CreateHouses("Hoiuse111");
        }
예제 #2
0
 public void Arrest(Dweller dw)                                 // Принимает агрументом жителя, которого нужно арестовать
 {
     Console.WriteLine("Dweller " + dw.name + " was arrested"); // Выводит имя арестанта
 }