static void Main(string[] args) { Doctor doctor = new Doctor(); Policeman policeman = new Policeman(); doctor.DayShifts = 5; doctor.NightShifts = 5; doctor.Salary = 10000; doctor.WorkingHours = 45; policeman.Rang = "major"; policeman.Salary = 50; policeman.WorkingHours = 45; Console.WriteLine(policeman); Console.WriteLine(doctor); }
static void Main(int[] args) { Policeman ushev = new Policeman(40, 600, 2); }