Create a class Vehicle and three additional classes (each derived from Vehicle) named Car, Truck and Boat. The member attributes and functions for each class are given below. Make parametrized...


Create a class Vehicle and three additional classes (each derived from Vehicle) named Car, Truck and Boat. The member attributes and functions for each class are given below. Make parametrized constructor for all classes.
Vehicle:
private:
int wheels;
float weight;
int model;
int passenger_capicty;
public:
void print_info()=0;
Car:
public:
void print_info();
Truck:
private:

float load_capicty;
public:
void print_info();
Boat:
public:
void print_info();



Jun 07, 2022
SOLUTION.PDF

Get Answer To This Question

Related Questions & Answers

More Questions ยป

Submit New Assignment

Copy and Paste Your Assignment Here