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 are the main concepts of oops in java?
Explain how hashmap works?
How many ways can an argument be passed to a subroutine and explain them?
Explain the protected field modifier?
How hashmap works in java?
What is difference between ++ I and I ++ in java?
How do weakhashmap works?
What is int argc char * argv?
Why volatile is used in java?
What are the concepts of 'OOPS'?
Differece between class and generic class?
What do you know about the garbate collector?
What Is Query Throttling in java?
What is the difference between object oriented programming language and object based programming language?
Can a vector contain heterogenous objects?