![]() To report the make, model, color, and license number of the illegally parked car.The class's responsibilities are as follows: The ParkingTicket Class: This class should simulate a parking ticket. ![]() To issue a parking ticket (generate a ParkingTicket object) if the car's time has expired.To examine a ParkedCar object and a ParkingMeter object, and determine whether the car's time has expired.To know the police officer's name and badge number.The PoliceOfficer Class: This class should simulate a police officer inspecting parked cars. To know the number of minutes of parking time that has been purchased.The class's only responsibility is as follows: The ParkingMeter Class: This class should simulate a parking meter. To know the car's make, model, color, license number, and the number of minutes that the car has been parked.The ParkedCar Class: This class should simulate a parked car. For this assignment you will design a set of classes that work together to simulate a police officer issuing a parking ticket.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |