Let's explore the principle of Composition over Inheritance in the context of Object-Oriented Programming (OOP) and... our favourite 8-bit video games! This video uses metaphors and analogies from retro video games to explain the concepts of Composition and Inheritance. It highlights the advantages of Composition and why it may be a more beneficial approach. The video illustrates the principle of Composition over Inheritance, demonstrating how Composition can lead to more flexible, maintainable, and scalable code. **What You'll Learn:** - The key differences between Inheritance and Composition. - Benefits of using Composition over Inheritance in your projects. - How to be pragmatic when considering Composition over Inheritance --- Website: Twitter: Discord: Substack: --- **Thanks:** Thanks to @ScottYuJan and Mathias Verraes from @aardling_eu for allowing me to use their content within the video. Scott's video: Tweets from Mathias Verraes mentioned in the video: **Timestamps:** 0:00 Inheritance 2:11 Composition 3:18 Composition over Inheritance 7:14 When to use Inheritance? #Software #Programming #Coding #SoftwareDesign #SoftwareDevelopment #OOP#ObjectOrientedProgramming











