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

5

u/brett_riverboat Jun 02 '18

The only terms I've heard of are overloading and overriding. The other ones sound like bad practice to me.

2

u/desrtfx Jun 02 '18

The other ones sound like bad practice to me.

Commonly, the other ones (shadowing, hiding, and obscuring) mostly happen because of accidents.