What is meant by polymorphism ? Explain with an example

Showing Answers 1 - 3 of 3 Answers

Sachin

  • Aug 28th, 2005
 

Polymorphism is a feature by which one interface is used as general class of action

  Was this answer useful?  Yes

dhinesh

  • Sep 12th, 2005
 

Single object can perform multiple operation. Ex: like calculator

  Was this answer useful?  Yes

yogeshpanda

  • Sep 22nd, 2005
 

Polymorphisn means---One name many form.2 type:Compile time:Overloding.Run time:Overriding.ex.Overloading.class A{ int add(int a,int b) { } float add(float a,float b) { }}Both using same name but diff. arguements i.e overloading is related to function name only.It is done in same class.ex.Overriding.Class A{ int add(int a,int b) { }}Class B extends B{ int add(int a,int b) { }}Both using same name,same argument.It is used with concept of inheritance.

  Was this answer useful?  Yes

Give your answer:

If you think the above answer is not correct, Please select a reason and add your answer below.

 

Related Answered Questions

 

Related Open Questions