News for hackers. Stuff that matters.
Re:Java Language Update – a look at where the language is go... by kbolino on Sunday June 02, 2024 @11:36AM (#40554981)
OOP and especially post-OOP languages don't encourage the "Dog is-a Animal" type of inheritance that you describe. Sadly, education has not caught up to industry and so it is still often taught the wrong way. Composition-over-inheritance has been the dominant methodology of practical OOP for a long time, so much so that most post-OOP languages (Swift, Rust, Go, ...) have dropped inheritance entirely, while still preserving the other aspects of OOP, like encapsulation, polymorphism, and limited visibility.

There are no comments on this comment yet.