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 is the purpose class.forname method?
Is singleton class thread safe?
Explain the difference between extends thread vs implements runnable in java?
How can we make a class virtual?
What do you mean by multithreaded program?
How many types of classes are there in java?
Difference between string, stringbuffer and stringbuilder?
Can an interface implement another interface?
What is thread life cycle in java?
What are recursive functions?
What is the static field modifier?
What does a boolean method return?
What is args length in java?
What is %d in printf?
What are different data structures in java?