What is "balanced polymorphism?

Different forms of polymorphism in java?

  • plzzz explain different forms of polymorphism in java i.e, like runtime,method overloading through polymorphism

  • Answer:

    polymorphism means "same thing will exists with different forms" Ex :suppose we need to find volume of circle,rectangle,triangle.etc in a sample program. generally what we need to do is write the code volume for circle,rectangle,triangle in separately. using polymorphism concept we simply write the volume code with different parameter list ect Ex: class a { volume(int a)//for rectangle { --- } volume (int a,intb,intc)//for triangle { -- } volume (string s)//for circle { -- } }end of class A polymorphism are mainly two types static polymorphism(corresponding method will bind at the time of compiling) dynamic polymorphism(corresponding method will bind at the run time) Static polymorphism is used the concept of early binding or we can say compile time binding where as dynamic polymorphism used the concept of late binding or run time binding. method overloading would be an example of static polymorphism whereas overriding would be an example of dynamic polymorphism. B'Coz,in case of overloading,at compile time the compiler knows which method to link to the call . However,it is determined at runtime for dynamic polymorphism.

Kush at Yahoo! Answers Visit the source

Was this solution helpful to you?

Other answers

Polymorphism exists in three distinct forms in Java: 1.Method overloading 2. Method overriding through inheritance 3. Method overriding through the Java interface two types of polymorphism- 1. compile time (method overloading) 2.run time(method overriding)

Aaren

The term homonym means “a word the same as another in sound and spelling but with different meaning.”Polymorphic assignment statements,Polymorphic Parameter Passing,Polymorphic return types these are the forms of polymorphism in java.

Bahiya

Just Added Q & A:

Find solution

For every problem there is a solution! Proved by Solucija.

  • Got an issue and looking for advice?

  • Ask Solucija to search every corner of the Web for help.

  • Get workable solutions and helpful tips in a moment.

Just ask Solucija about an issue you face and immediately get a list of ready solutions, answers and tips from other Internet users. We always provide the most suitable and complete answer to your question at the top, along with a few good alternatives below.