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 |
Explain differences between new() and delete()?
Write about an iterator class?
What is function prototyping?
How can you create a virtual copy constructor?
Define a constructor - what it is and how it might be called (2 methods)?
In a function declaration what does extern means?
Can class objects be passed as function arguments?
Which bit wise operator is suitable for putting on a particular bit in a number?
Why is c++ a mid-level programming language?
What is the benefit of encapsulation?
Is c++ proprietary?
Write a program using merge () function to combine the elements of array x[ ] and y[ ] into array z[ ].