Which is incorrect about method overloading ?

Rohith

Which is incorrect about method overloading ?



A) same method name, differ in number of arguments.
B) same method name, differ in return type.
C) same method name, differ in order of arguments.
D) same method name, differ in type of arguments.

Answer & Solution Answer: Option B
Solution:
same method name, differ in return type.

Post a Comment

Cookie Consent
We serve cookies on this site to analyze traffic, remember your preferences, and optimize your experience.
Oops!
It seems there is something wrong with your internet connection. Please connect to the internet and start browsing again.
Site is Blocked
Sorry! This site is not available in your country.