DEV Community

Discussion on: Why Santa Claus Can't Inherit from Human: A Festive OOP Lesson

Collapse
 
noriller profile image
Bruno Noriller

I also don't like most examples and this one is no different.

I personally prefer to go functional and not deal with classes but you can't always avoid it, not to mention that sometimes you do need to open the way to resize it (or the real world equivalent to whatever class you're dealing with).
When you do... you might find yourself with problems, or a lot of ifs here and there or even basically overriding the whole class to fit the needs.

I'm not saying not to use it, but that sometimes you can't just assume programming and real life abstract things the same way.