Hello. Trying to decipher the home, stalled (
Here is the task:
Create a base class - a car that must contain data elements: the number of wheels and engine power, as well as a virtual function that issues this data to the console.
Create derived classes - bus and truck, containing data: number of passengers for the bus, load capacity for the truck. Override the inherited function so that in derived classes it displays all data about objects. All classes must be in orthodox canonical form.
Create a function that outputs data about the object to the console, without having any information about which class the input parameter is.
Decipher what this inherited function should do? Is this a virtual function? How did I get out ... Am I slowing down ... (What kind of canonical orthodox ... what is this !? And how can I create the last ?? I will enter 180, and the class has a private value = 180 ... derive it, so ?? Generally confused ...
It seems to have written the main inheritance - not difficult, I am familiar with these matters ...