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
In java, how many ways you can take input from the console?
What is object-oriented programming?
What does the three dot emoji mean?
How we can make copy of a java object?
Can java run on google chrome?
What is http client in java?
What is a dynamic array java?
How we can execute any code even before main method?
How do you call a reference in java?
Define canvas?
Write a program to print 15 random numbers using foreach of java 8?
How many digits can a float hold?
What are the steps involved to write rmi based programs?
Explain the pointers in Java?
How do you use compareto in java?