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 an interoperable application in java ?
Explain heap sort?
What is the difference between class & object?
What is a function in programming?
Explain importance of finally block in java?
What are the types of relation?
Is space a character in java?
Why are global variables used?
Why chararray() is preferred over string to store the password?
What is Java Shutdown Hook?
What is arrays fill in java?
What is dynamic array in java?
Implement a stack with push (), pop() and min() in O(1) time.
What are the advantages of java over cpp?
Explain the significance of class loaders in bootstrap?