• 2 Posts
  • 10 Comments
Joined 1 year ago
cake
Cake day: June 13th, 2023

help-circle










  • Something which I realized and made me understand why the return type is not part of the sigure, is the question “what happens if you just call a method, but not assign the return value to a variable?” If you have two methods with the same name, and parameters, and the only difference is the return type, how would you decide what method to call, if you have not the slightest idea which one of them is meant? As you are not required to assign the return value to anything, you have no indication.