Ranter
Join devRant
Do all the things like
++ or -- rants, post your own rants, comment on others' rants and build your customized dev avatar
Sign Up
Pipeless API
From the creators of devRant, Pipeless lets you power real-time personalized recommendations and activity feeds using a simple API
Learn More
Comments
-
@iamroot Did he tell you why? Is this an introductory lesson or is he just being stubborn?
-
iamroot41217y@telephantasm he says "it works without it" and it's an AP course (Advanced Placement) and we are 8 months into the course. The reason for green foot is because it does not have auto complete and you learn better.
-
Well, he's got a point, there. @Override is not necessary if you know what you're doing. And as for avoiding autocomplete, he's also got a point... It's good to remember things. You'd ve surprised how many devs can't setup a Spring project from memory. Not the same, but still.
-
iamroot41217y@telephantasm ya but he comments that he's overriding instead of just using @override
-
In C# you can't override without the "override" keyword in the subclass + "virtual" keyword in the base class. I've always wondered if not needing any keywords in Java is harmful for security. I suppose it is.
-
@iamroot I can only asdume the code works w/o that comment as well.. So
if it works w/o anno == anno shall not be used ==> if it works w/o the comment == comment shal not be used.
The guy doesn't follow his own rules :/ -
@netikras writing "override" in a comment when you can use the keyword is definitely bad code.
If only there was a way in java to say that you were overriding a method...
rant
stupid cs teacher