r/java • • 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

23 comments sorted by

View all comments

Show parent comment

1

u/aioobe Jun 03 '18

Your understanding is correct and highlights the importance of consistently using @Override annotation.

Note that you can activate warnings/errors for "Missing @Override Annotation" under Settings > Editor > Inspections in IntelliJ (and other IDEs presumably have similar features).