// Examine this file and you will find that it is the // implementation of the vehicle class. The initialize() // method assigns the values input as parameters to the // wheels and weight variables. We have methods to return // the number of wheels and the weight, and finally, we have // one that does a trivial calculation to return the loading // on each wheel. #include "vehicle.h" using namespace std; // initialize to any data desired void vehicle::initialize(int in_wheels, float in_weight) { wheels = in_wheels; weight = in_weight; } // get the number of wheels of this vehicle int vehicle::get_wheels() { return wheels; } // return the weight of this vehicle float vehicle::get_weight() { return weight; } // return the weight on each wheel float vehicle::wheel_loading() { return weight/wheels; }