Java: Composition over inheritance

Опубликовано: 05 Март 2026
на канале: Liviu Oprisan
4,581
68

In this episode I talk about why composition is preferred to inheritance and how I got to understand this.
What signs I saw that inheritance was starting to turn against.
I also talk a bit about the Liskov substitution.

You can read the article here: https://liviuoprisan.com/composition-...

This video is part of my Clean Code course.
You can watch the Clean Code courses here:

Clean code with Java examples course on Udemy: https://www.udemy.com/course/clean-co...
Clean code with PHP examples course on Udemy: https://www.udemy.com/course/clean-co...
Maintainable code with Java examples: https://www.udemy.com/course/maintain...