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 are the two different types of polymorphism?
Why do we use polymorphism?
What are the 3 pillars of oop?
What is class encapsulation?
What is constructor overloading in oop?
What does and I oop and sksksk mean?
What is the advantage of oop over procedural language?
Explain the concepts involved in Object Oriented programming.
Plese get me a perfect C++ program for railway/airway reservation with all details.
i am getting an of the type can not convert int to int *. to overcome this problem what we should do?
How long to learn object oriented programming?
What is the difference between procedural programming and oops?
if i have same function with same number of argument but defined in different files. Now i am adding these two files in a third file and calling this function . which will get called and wht decide the precedence?
Which method cannot be overridden?
can we make game by using c