Challenge 1: Implement the Derived Class
Explore how to implement a derived class function in C++ that combines a car's name with its model and speed using inheritance from a base Vehicle class. Learn to design an algorithm and apply object-oriented principles to reinforce your understanding of class hierarchies.
We'll cover the following...
We'll cover the following...
Problem Statement
Implement a function getDetails(string carName) of the Derived Class Car which takes a string carName and append it with model name and speed. We have already implemented the Base Class Vehicle with the member functions ‘getModel()’ and `getSpeed()’ ...