What is Dynamic Polymorphism?
Answers were Sorted based on User's Feedback
Answer / 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 |
Answer / atul gaikwad
This polymorphism is also called as late binding.
Dynamic polymorphism can be achieved by using function overriding.
eg.for addition of numbers if we write function as
void add Numbers(int,int);
And this function is written in base class as well as derived class as it is then satisfies the function over-riding concept.
| Is This Answer Correct ? | 0 Yes | 0 No |
Answer / abinash mohanty
Out of multiple functions which function is going to be
executed,that is decided at the run time. This concept is known as dynamic polymorphism
| Is This Answer Correct ? | 0 Yes | 0 No |
How do you make derived class as an abstract class?
what is a binary overloading
What is Method overloading?
What is a scope resolution operator?
monkey starts climbing up a tree 20ft tall,each hour ,it hops 3ft and slips back by 2ft .how much time it wil tak to reach top of the tree?
What's the full form of STL?
What is the oops and benefits of oops programming?
what is the drawback of classical methods in oops?
how many types of notations are in java
1 Answers National University of Modern Languages (NUML),
In c++ there is only virtual destructors, no constructors. Why?
what is oops
What is data binding in oops?