OO design - car rental
- by gkid123
AnHow would you implement the following car hierarchy along with the accessor functions and a CarRental class which contains the container to store them?
A car rental company wants to keep track of its cars. Each vehicle has a license plate and a brand. Currently the company has SUV and Sedans. SUV have an optional third row seat, sedan’s have an optional sport package. Each car can be queried to inquire the number of passengers it can carry.