class Vehicle { public: Vehicle::Vehicle(int newVin = 0, int newModelYear = 0); int Vehicle::getVin() const; int Vehicle::getModelYear() const; void Vehicle::setVin(int newVin); void Vehicle::setModelYear(int newModelYear); virtual void print() const; protected: int vin, modelYear; }; class Car: public Vehicle { public: Car::Car(int newVin = 0, int newModelYear = 0, int newDoors = 0, int newPassCap = 0); int Car::getDoors() const; int Car::getPassCap() const; void Car::setDoors(int newDoors); void Car::setPassCap(int newPassCap); virtual void print() const; private: int doors, passCap; }; class Truck: public Vehicle { public: Truck::Truck(int newVin = 0, int newModelYear = 0, int newEmptyWeight = 0, int newLoad = 0); int Truck::getemptyWeight() const; int Truck::getload() const; void Truck::setemptyWeight(int newEmptyWeight); void Truck::setload(int newLoad); virtual void print() const; private: int emptyWeight, load; };