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 does and I oop and sksksk mean?
#include
Can an interface inherit a class?
What is polymorphism give a real life example?
write a C++ program for booking using constructor and destructor.
What is class in oop with example?
given a set based questions and 5 questions based on it next data sufficiciency questions 2 and 2/3 english sentence completion with options very easy and 2 synononmys paragraph with 10 questions 10 minutes replace =,-,*,% with -,%,+,* type questions 5 3 questions lik following itssickhere itssickthere itssickhere istsickhere which is nt alike the others very easy
What is oops and why we use oops?
Are polymorphisms mutations?
write string class as your own class in java without using any built-in function
What is object and class in oops?
What is object in oop with example?
what is graphics
What are the three main types of variables?
assume the program must insert 4 elements from the key board and then do the following programs.sequential search(search one of the elements),using insertion sort(sort the element) and using selection sort(sort the element).