// Examine this file for a simple class which we will // use to begin our study of inheritance. // There is nothing unusual about this class header, // it has been kept very simple. It consists of four simple // methods which can be used to manipulate data pertaining // to our vehicle. What each method does is not especially // important at this time. We will eventually refer to this // as a base class or parent class, but for the time being, // we will simply use it like any other class to show that it // is indeed identical to the classes already studied. #ifndef VEHICLE_H #define VEHICLE_H class vehicle { protected: int wheels; float weight; public: void initialize(int in_wheels, float in_weight); int get_wheels(void); float get_weight(void); float wheel_loading(void); }; #endif