What restrictions are placed on method overloading and
method overriding?
Answer Posted / aditya mohata
in method overloading we hav to hav the methods in the same
class n they hav to hav diff signatures so as to avoid
ambiguity.they hav to hav the same method name.
in method overriding we hav to hav the same name of the
methods n hav to hav them in different classes with same
signatures.
Is This Answer Correct ? | 12 Yes | 5 No |
Post New Answer View All Answers
What is an iterator java?
Which one of the following suits the description of a string better: derived or primitive?
What is user defined exception in Java?
what is a thread pool in java and why is it used?
How are this() and super() used with constructors in java programming?
Why should I use abstract class?
What is method reference?
What is sorting algorithm in java?
When is an object subject to garbage collection?
What is the size of int?
Why do we declare a class static?
What is byte [] in java?
What is charat java?
Why we used vector class?
Write a program to solve producer consumer problem in java?