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: [ Ссылка ]
Patreon: [ Ссылка ]
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
Composition over Inheritance Explained by Games! #programming
Теги
design patternssoftware architecturesoftware architecture patternsprogramming design paternsprogramming architectureprogramming conceptscomposition over inheritanceinheritance over compositionprogramming retro gamesprogramming arcade gamessoftware programmingwhat does inheritance meanwhat does composition meanwhat is composition over inheritancecomposition vs inheritanceinheritance vs compositionobject orientated programmingoopobject-orientated