// Examine this file for our first example of the use of a // derived class or child class. The vehicle class is inherited due // to the ": public vehicle" added to line 7. This derived class // named car is composed of all of the information included in the // base class vehicle, and all of its own additional information. // Even though we did nothing to the class named vehicle, we made it // into a base class because of the way we are using it here. #ifndef CAR_H #define CAR_H #include "vehicle.h" class car : public vehicle { int passenger_load; public: void initialize(int in_wheels, float in_weight, int people = 4); int passengers(void); }; #endif