Explain the concept of polymorphism with examples?

Answers were Sorted based on User's Feedback



Explain the concept of polymorphism with examples?..

Answer / dhawal

polymorphisum-polymorphisum means one name many
forms,basically polymorphisum is base class pointer which
can access derive class members

real time example:-
on street signal if red signal turn on all type of vehicals
are stops means on single action multiple tasks are done.


compile time polymorphisum-overloading.

run time polymorphisum-overriding.

Is This Answer Correct ?    16 Yes 0 No

Explain the concept of polymorphism with examples?..

Answer / venkat

Polymorphism means If one thing exists in different forms v
can it as pOlymorphism
EX:Overloading
Overriding

Is This Answer Correct ?    14 Yes 7 No

Explain the concept of polymorphism with examples?..

Answer / ravikiran(aptech mumbai)

polymorphism is utilizing the same interface for multiple
purposes
ex:-overloading,overriding

Is This Answer Correct ?    7 Yes 2 No

Explain the concept of polymorphism with examples?..

Answer / nazim virani

Polymorphism is accomplished when different component or
classes behave differently on same interface

Is This Answer Correct ?    3 Yes 1 No

Explain the concept of polymorphism with examples?..

Answer / sankar

polymorphism helps us create classes which are simple and
user friendly.it allow the class to behave polymorphicly
when different inputs are passed on to it.

Is This Answer Correct ?    6 Yes 5 No

Explain the concept of polymorphism with examples?..

Answer / babul mog

Polymorphism: polymorphism means the same interface for multiple purposes,basically it is base class pointer which can access derive class members.
It has two types:
1. compile time polymorphisum: function overloading,function overriding.
2. runtime polymorphism : virtual function.

Is This Answer Correct ?    2 Yes 1 No

Post New Answer

More Core Java Interview Questions

How can final class be used?

5 Answers   Accenture, Wipro,


take an array with -ve and +ve value both.find out the nearest value of 0(zero).if two values are same like(-2 and +2)then extract +2 is nearest of 0(zero).

0 Answers  


What is a platform?

0 Answers  


Can you achieve runtime polymorphism by data members?

0 Answers  


What is final keyword in java?

0 Answers  






What is the purpose of a statement block?

1 Answers  


What is the use of a copy constructor?

0 Answers   Flextronics,


Can java run on google chrome?

0 Answers  


Can we serialize singleton class?

0 Answers  


1).what is the difference between below examples String s="vijay"; String s=new String("vijay");

12 Answers   Mascon, Satyam, TCS,


What are methods and how are they defined?

0 Answers  


What is procedure overloading?

0 Answers  


Categories