Samsung Electronics interview question

Inheritance and polymorphism internals in C++