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
can inline function declare in private part of class?
write a program using c++ to implement single contiguous memory mangement techniques.display the content of the main memory after yhe allocation of jobs and percentage of the wastage of the main memory
What are the 4 main oop principles?
Why is polymorphism needed?
What is abstraction with example?
What is encapsulation in ict?
What is encapsulation and abstraction? How are they implemented in C++?
officer say me - i am offered to a smoking , then what can you say
What is polymorphism in oop example?
Get me an image implementation program.
Why do we use polymorphism?
What is a superclass in oop?
Can destructor be overloaded?
String = "C++ is an object oriented programming language.An imp feature of oops is classes and objects".Write a pgm to count the repeated words from this scenario?
What is destructor in oop?