You have to Create three classes:

Class Vehcile:

Vehicle Class will contain a display() function, which will say "This is a Vehicle".

Class Car:

Car Class will derive the Vehicle Class and overwrite its display() function. it will say "This is a Bike".

Class Bike:

Bike Class will derive the Vehicle Class and overwrite its display() function. it will say "This is a Car".

Now, You will be given an Integer N, which will denote the number of tyres in the vehciles. You have to create an object of the appropriate class according to the value of N and use it display() function.

If N = 2, Create a Bike Object.

If N = 4, Create a Car Object.

Create a Vehicle Object, otherwise.

 

Input Format
First line will contain an Integer N, denoting the count of tyres.
 

Constraints
1 <= N <= 100
   write algorithm in c++ for the above question There should be exactly 3 paragraphs separated by the markdown divider: ***.
user