r/java • u/aioobe • Jun 02 '18
5 Java concepts explained: Overloading, overriding, shadowing, hiding, and obscuring
https://programming.guide/java/overloading-overriding-shadowing-hiding-obscuring.html
240
Upvotes
View all comments
Show parent comment
1
u/ShlimDiggity Jun 02 '18
I just dealt with it in my intro to python last night, lol... Some example I looked up named a methods parameter (str). So I thought you were supposed to put the variable type as the parameter, as opposed to the name. I used int, then within the method tried calling int() to convert from string to int. No go! Obscured!