What is Dynamic Polymorphism?

Answers were Sorted based on User's Feedback



What is Dynamic Polymorphism?..

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

What is Dynamic Polymorphism?..

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

What is Dynamic Polymorphism?..

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

Post New Answer

More OOPS Interview Questions

What are callback functions in c++

1 Answers   SoftTech,


What is polymorphism in oop example?

0 Answers  


What are the data types in oop?

0 Answers  


what is ns string? what is ns array?

1 Answers  


Tell us about yourself.

47 Answers   ABB, Amazon, Fidelity, Flextronics, Franklin Templeton, HCL, Hexaware, IBM, Impetus, Infosys, Reliance, Rofous, Silgate, Sutherland, TCS, Thomson Reuters, Virtusa, Wipro,


What is class and object with example?

0 Answers  


what is virtual function?

3 Answers  


what is the definition of incapsulation

2 Answers  


How do you use inheritance in unity?

0 Answers  


Pls...could any one tell me that whether we can access the public data memeber of a class from another class with in the same program. Awaiting for your response Thanku

4 Answers  


given a set based questions and 5 questions based on it next data sufficiciency questions 2 and 2/3 english sentence completion with options very easy and 2 synononmys paragraph with 10 questions 10 minutes replace =,-,*,% with -,%,+,* type questions 5 3 questions lik following itssickhere itssickthere itssickhere istsickhere which is nt alike the others very easy

0 Answers   DELL,


which is platform independent device used in computers

2 Answers  


Categories