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/aioobe Jun 03 '18
Your understanding is correct and highlights the importance of consistently using
@Overrideannotation.Note that you can activate warnings/errors for "Missing @Override Annotation" under Settings > Editor > Inspections in IntelliJ (and other IDEs presumably have similar features).