OO design - car rental

Posted by gkid123 on Stack Overflow See other posts from Stack Overflow or by gkid123
Published on 2010-03-26T19:44:51Z Indexed on 2010/03/26 19:53 UTC
Read the original article Hit count: 1034

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.

© Stack Overflow or respective owner

Related posts about oo

Related posts about object-oriented-design