what is polymorphism with example?types of polymorphism?
Answer Posted / sai
Two Types,namely
1)Compile Time Poly(Say as Method Overloading)
Methods having same name but differ in no. of
Parameters,Return type and order of parameters.
2)Runtime Poly(say as Method Overriding and Dynamic Dispatch)
Subclass methods having the same signature as that
of the super class method.
| Is This Answer Correct ? | 1 Yes | 0 No |
Post New Answer View All Answers
What is the difference between replace and replace all?
What is java thread dump, how can we get java thread dump of a program?
What are the procedures?
What is methodological theory?
How do you use find and replace?
What is the difference between C++ and Java and your preferences?
What is difference between overloading and overriding in java?
When is finally block not called?
Can we use string in the switch case?
Is heap stored in ram?
Are global variables initialized to zero?
What is size of int in java?
What is the size of int?
Why is logger singleton?
What is an example of a keyword?