what is polymorphism with example?types of polymorphism?

Answer Posted / vignesh,c

poly means many morph means shapes so, one function taking
many shapes ,for ex: take the function name as add,
by passing different sets of arguments it can add 2no.s,3
numbers etc....

there are two types of polymorphism namely,
runtime polymorphism,compile time polymorphism,
compile time Polymorphism means function overloading,
run time polymorphism means virtual functions.

Is This Answer Correct ?    4 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What class of exceptions are generated by the java run-time system?

640


How do you compare objects in java?

505


What is the use of default method in interface in java?

555


What is stack class in java?

548


What is polymorphism java example?

552






What is merge sort in java?

587


Is binary a low level language?

519


What is the range of a character variable?

547


Is set sorted in java?

523


What are the types of relation?

577


Difference between vector and arraylist.

585


How objects of a class are created if no constructor is defined in the class?

585


Why java uses the concept of the string literal?

549


explain what is transient variable in java?

630


What is the argument in java?

497