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
How to call a non virtual function in the derived class by using base class pointer
What does and I oop mean in text?
What is the important feature of inheritance?
What are properties in oop?
Can static class have constructor?
How do you explain polymorphism?
What is property in oops?
What is abstraction in oop with example?
What is super in oop?
What is oops concept with example?
officer say me - i am offered to a smoking , then what can you say
How is class defined?
Why do we need oop?
What is data binding in oops?
What is the significance of classes in oop?