What is Dynamic Polymorphism?

Answer Posted / karthikeyan srinivasan

Polymorphism : Same function name but with different behaviors
Related Concepts : functional overriding and functional
overloading

Dynamic Polymorphism(Run time polymorphism) :
The decision of selecting which function has to be run
in run time is dynamic polymorphism
Ex:
class A {
function write() {
// Base class write method
}
}
class B extends A {
function write() {
// Derived class method
}
}
Called dynamic binding.

Compile time polymorphism:

Functional overloading is compile time polymorphism.

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

• What are the desirable attributes for memory managment?

1977


What is overloading in oops?

868


Why do we use class in oops?

768


What is the real life example of polymorphism?

879


What is class encapsulation?

852


what are the realtime excercises in C++?

2573


Can you explain polymorphism?

858


write a program that takes input in digits and display the result in words from 1 to 1000

2208


What is oops and why we use oops?

816


Plese get me a perfect C++ program for railway/airway reservation with all details.

3683


What is a superclass in oop?

936


what is graphics

2232


Why multiple inheritance is not allowed?

851


i=20;k=0; for(j=1;k-i;k+=j<10?4:3) { cout<

1658


what type of questions

1917