• +91 9723535972
  • info@interviewmaterial.com

OOP Interview Questions and Answers

Question - How does C++ support Polymorphism?

Answer -

C++ is an Object-oriented programming language and it supports Polymorphism as well:

  • 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.

Comment(S)

Show all Coment

Leave a Comment




NCERT Solutions

 

Share your email for latest updates

Name:
Email:

Our partners