public static void Main(string[] args) { Firefighter firefighter = new Firefighter ("Joe Carrington", 35); firefighter.PensionAmount = 5000; PoliceOfficer officer = new PoliceOfficer ("Jane Hope", 32); officer.PensionAmount = 5500; PrintNameAndAge(firefighter); PrintNameAndAge(officer); PrintPensionAmount(firefighter); PrintPensionAmount(officer); firefighter.DriveToPlaceOfInterest(); officer.DriveToPlaceOfInterest(); officer = new PoliceOfficer ("John Valor", 32, true); officer.DriveToPlaceOfInterest (); }
public static void Main(string[] args) { Firefighter firefighter = new Firefighter("Joe Carrington", 35); firefighter.PensionAmount = 5000; PoliceOfficer officer = new PoliceOfficer("Jane Hope", 32); officer.PensionAmount = 5500; PrintNameAndAge(firefighter); PrintNameAndAge(officer); PrintPensionAmount(firefighter); PrintPensionAmount(officer); firefighter.DriveToPlaceOfInterest(); officer.DriveToPlaceOfInterest(); officer = new PoliceOfficer("John Valor", 32, true); officer.DriveToPlaceOfInterest(); }