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
Are functions objects in java?
This abstract class is correct ? abstract class A { public abstract void Disp(); public abstract void B() { } public absract virtual C() { } }
What is the difference between processes and threads?
How to display all the prime numbers between 1 and n (n is the number, get the input from user)
Why we use methods in java?
What are the parts of a method?
What are the supported platforms by java programming language?
What is a variable simple definition?
What are latest features introduced with java 8?
What is 16 bits called?
Which programming language is best in future?
How do you check if a string is lexicographically in java?
How do you check if a character in a string is a digit or letter?
Give the hierarchy of inputstream and outputstream classes.
What is a function argument in java?