This assignment requires several classes which interact with each other. Two class aggregations are formed. The program will simulate a police officer’s beat where the officer is giving out tickets for parked cars whose meters have expired.
The following are the list of classes required for the program and the interaction between them. You must include both a header file and an implementation file for each class.
Car class (include Car.h and Car.cpp) Contains the information about a car.
Contains data members for the following
String make
String model
String color
String license number
Default constructor
Mutators and accessors for all data members
Overload the << operator.
ParkedCar class (include ParkedCar.cpp ParkedCar.h) simulates a parked car. Knows which type of car is parked and the number of minutes that the car has been parked.
Contains data members for the following
Car (instance of the class above)
Integer minutes parked.
Default constructor
Constructor (5 parameters)
Copy constructor
Mutators and accessors for data members other than Car
Overload the << operator