PHP OOD (28) | Necessary Composition
It's not always bad to make a class require another, but it strongly depends on what your goal is. In this example, I show you a good way to use composition in PHP Object Oriented Design (OOD). Inheritance is not the life-blood of OOP, yes it has it's uses. However, it's better to favor composition over inheritance. I believe this is true because composition is much more flexible. Thanks for watching my PHP OOD Video Tutorial, please subscribe :)
Thanks for watching my video tutorials! I hope they help and make your learning easier.