I am currently doing the Java Path on Codecademy. In my current task I found this comment:
Oftentimes, you’ll see constructors have parameters with the same name as the instance variable. For example, you might see something like:
From all what I have seen in university and YouTube Tutorials, this is the way to build constructors. It’s not “oftentimes”, it’s more like “always”.
That brings me to the question why Codecademy is teaching it in a completely different way in the beginning of the course?
In my opinion, this creates more confusion than added value. At least for me, it was a mildly frustrating experience.
edit: is it also possible that in this course the words “instance” and “object” are wildy mixed up?