What is polymorphism ? Explain with examples
Answer Posted / k.r.sukumar
Polymorphism means "A single function which is used for
different purposes depending upon the parameters passed"
for eg;
Area is the function name which is used for
calculating areas of the rectangle, triangle and even more.
from this persepective we conclude that area is the single
function which is used for calculating different ones.
area(a);---> Area of the square
area(l,b);---> Area of the rectangle.
Is This Answer Correct ? | 22 Yes | 1 No |
Post New Answer View All Answers
what is the drawback of classical methods in oops?
What is interface in oop?
Why is destructor used?
Can you inherit a private class?
What is the highest level of cohesion?
What is encapsulation oop?
2. Give the different notations for the class.\
Is data hiding and abstraction same?
when to use 'mutable' keyword and when to use 'const cast' in c++
What are different oops concepts?
What does and I oop mean?
Explain the advantages of inheritance.
What are different types of JVM's? for example we use dalvik jvm for android then what about the remaining operating systems?
Why is encapsulation used?
what is graphics