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 BSolution:
same method name, differ in return type.