Explain the concept of polymorphism with examples?
Answer Posted / 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 |
Post New Answer View All Answers
How many digits can a float hold?
What is a method type?
What is immutable data?
Can we overload the main() method?
What are the various access specifiers in java?
Is singleton a bad practice?
How can we make sure main() is the last thread to finish in java program?
What are meta-annotations?
What is keyset in java?
what is the major difference between linkedlist and arraylist in java?
How many ways can we create singleton class?
Can singleton class be inherited in java?
Can list be final in java?
if u open login & logout ,how can udisplay the timelogin & logout members ?
What are the types of sockets in java?