New course! Every coder should learn Generative AI!
Try a free lesson0
Can I overload a method by creating methods with the same name but changing both the return type and the parameters? Or does it work only when I change the parameters...
2 Answers
+ 2
parameters actually go with return type...u can't possibly return a double for an int parameter
0
you can do that, if you change both it works