Pregunta de entrevista de Nokia

How does C++ support Polymorphism?

Respuesta de la entrevista

Anónimo

30 de jun de 2022

C++ is an Object-oriented programming language and it supports Polymorphism. Compile Time Polymorphism: C++ supports compile-time polymorphism with the help of features like templates, function overloading, and default arguments. Runtime Polymorphism: C++ supports Runtime polymorphism with the help of features like virtual functions. Virtual functions take the shape of the functions based on the type of object in reference and are resolved at runtime.

1