define a class table with the data member as length, width , height and a member function compare a function should receive 2 table objects and should print which table object is larger than other
PLEASE TELL ITS URGENT .... and plsss dont scam otherwise i will report u
Answers
Answered by
0
Definitions:
A virtual function is a member function which is declared in the base class using the keyword virtual and is re-defined (Overriden) by the derived class.
The term Polymorphism means the ability to take many forms. It occurs if there is a hierarchy of classes which are all related to each other by inheritance.
Polymorphism
Class Hierarchy
Note: In C++ what this means is that if we call a member function then it could cause a different function to be executed instead depending on what type of object invoked it.
Similar questions