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 ?    3 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

what is meant by HQL?

647


Which is the class in java?

521


How can we run a java program without making any object?

549


What is the difference in between cpp and java? Can u explain in detail?

613


How many ways can we create the string object?

532






What is canonical name in java?

628


How much is a java license?

528


What is class forname?

548


What is difference between pointer and reference?

512


how we can create packages in java?

525


Can list have duplicates in java?

525


Where can i get Latest SUN Certification Dumps and what are the Sun Certification Codes that are available, Im new to JAVA, so please gimme info as i need to write J2EE - Core Java Certification

1381


Explain how to convert any java object into byte array.

558


Which is better stringbuffer or stringbuilder?

533


What a static class can contains?

702