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 functions in oop?

789


What is class and object with example?

819


What is constructor overloading in oop?

865


What is abstraction with example?

829


officer say me - i am offered to a smoking , then what can you say

1846


Why polymorphism is used in oops?

792


What is static modifier?

843


Why do we use oops?

762


Why do we need oop?

873


What is debug class?what is trace class? What differences are between them? With examples.

1859


Get me an image implementation program.

1740


What is oops in simple words?

810


What is the main purpose of inheritance law?

948


Why is there no multiple inheritance?

771


What is encapsulation c#?

812