Pregunta de entrevista de Gartner

Difference between poly morph-ism and inheritance?

Respuesta de la entrevista

Anónimo

14 may 2020

Inheritance in C++ takes place between classes. In an inheritance (is-a) relationship, the class being inherited from is called the parent class, base class, or super class, and the class doing the inheriting is called the child class, derived class, or subclass. poly morph-ism occurs when there is a hierarchy of classes and they are related by inheritance.