Implement a class for vehicleType with data members "int YearModel, int speed and make (of type string or
charll)". With following member functions; - Constructor with parameter, receiving "YearModel and make" and
initialize other data members with ZERO. - int GetYearModel() const; - int GetSpeed( const; - string GetMake()

const; - void accelerate(); (increase car speed by adding 2) - void brake0; (decrease car speed by subtracting 2
up to ZERO ). Now create a new class named Truck inherited from the existing class vehicleType and add the
additional member variable for number_of wheels and a member function to print all details of Truck. Also add
appropriate constructors,

That sounds incomplete to me. Maybe this is some homework and you are stuck. Tell us where you are stuck and we'll discuss. Unlike some places we don't do your homework for you but will discuss and hopefully help you past the hurdles.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.