Answers for "in method overloading return type is different"

1

does overloading method can have different return type

return type can be same or different
in method overloading

but you can't have same parameters
Posted by: Guest on January-12-2021
0

Does overloading of a method has anything to do with its return type

In overloading, the access specifier, access modifier, return type and arguments
can be different but the method name has to be same. Overloading doesn't depend
on the return type that each of the method are returning.
Posted by: Guest on July-15-2021
-1

Return type of overloaded method should be same or not?

return type can be same or different in method overloading
Posted by: Guest on November-28-2020

Code answers related to "in method overloading return type is different"

Browse Popular Code Answers by Language