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
What are 3 boolean operators?
How many bytes is double?
What is thread safe in java?
What are the new features in java 8?
Can we have return statement in finally clause? What will happen?
What is arrays aslist in java?
Can we increase size of array?
Give differences between Quicksort & Mergesort. When should these sorts be used and what is their running time?
Explain the difference between runnable and callable interface in java?
Why heap memory is called heap?
Is java still relevant?
What is the finalize method do?
What is the difference between math floor and math round?
Is ruby built on java?
What is string manipulation?