What are the different types of polymorphism in c++?



What are the different types of polymorphism in c++?..

Answer / Mr Monu Kumar

In C++, there are two main types of polymorphism: Compile-time Polymorphism (also known as Static Polymorphism) achieved through function overloading and operator overloading. Run-time Polymorphism (also known as Dynamic Polymorphism) is achieved using base class pointers or references to derive class objects.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More C++ General Interview Questions

Explain differences between new() and delete()?

1 Answers  


Write about an iterator class?

1 Answers  


What is function prototyping?

1 Answers  


How can you create a virtual copy constructor?

1 Answers  


Define a constructor - what it is and how it might be called (2 methods)?

1 Answers  


In a function declaration what does extern means?

1 Answers   Flextronics,


Can class objects be passed as function arguments?

1 Answers   HCL,


Which bit wise operator is suitable for putting on a particular bit in a number?

1 Answers  


Why is c++ a mid-level programming language?

1 Answers  


What is the benefit of encapsulation?

1 Answers  


Is c++ proprietary?

1 Answers  


Write a program using merge () function to combine the elements of array x[ ] and y[ ] into array z[ ].

1 Answers  


Categories