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
What are oops functions?
Can we create object of interface?
How do you explain polymorphism?
What is destructor give example?
Why multiple inheritance is not possible?
What are the 3 pillars of oop?
What is overloading in oop?
Which language is not a true object oriented programming language?
What is an example of genetic polymorphism?
What is the difference between procedural programming and oops?
How do you answer polymorphism?
What is the significance of classes in oop?
Write a program to sort the number with different sorts in one program ??
What are constructors in oop?
What is use of overloading?