Question: Design a class to represent a parking enforcement agent called Parking TicketType. This object encapsulates officer name, badge number and a list of 10 tickets
Design a class to represent a parking enforcement agent called Parking TicketType. This object encapsulates officer name, badge number and a list of 10 tickets generated while on patrol. The description for the car, meter and ticket objects are below Variable name Data type Size Description officerName string Officer's last name badgeNo int Officer's badge number tickets TicketTypel 10 Numerical test score Use the information hiding concept mentioned in class. Car Type: Variable name Data type Description make string Car name model string Car model color string Color of car licenseNo string License number of the car time number of minutes that the car has been parked int Responsibilities include: To know the car's make, model, color, license nun fer. To know the number of minutes that the car has been parked. Meter Type: Design a class to represent a parking enforcement agent called Parking TicketType. This object encapsulates officer name, badge number and a list of 10 tickets generated while on patrol. The description for the car, meter and ticket objects are below Variable name Data type Size Description officerName string Officer's last name badgeNo int Officer's badge number tickets TicketTypel 10 Numerical test score Use the information hiding concept mentioned in class. Car Type: Variable name Data type Description make string Car name model string Car model color string Color of car licenseNo string License number of the car time number of minutes that the car has been parked int Responsibilities include: To know the car's make, model, color, license nun fer. To know the number of minutes that the car has been parked. Meter Type
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
