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 functions in oop?
What is class and object with example?
What is constructor overloading in oop?
What is abstraction with example?
officer say me - i am offered to a smoking , then what can you say
Why polymorphism is used in oops?
What is static modifier?
Why do we use oops?
Why do we need oop?
What is debug class?what is trace class? What differences are between them? With examples.
Get me an image implementation program.
What is oops in simple words?
What is the main purpose of inheritance law?
Why is there no multiple inheritance?
What is encapsulation c#?