IMPORTANT:

1 Year Free Hosting: https://www.atlantic.net/webdevsimplified
Use code KYLE for an additional $50


Object oriented programming has been around for a very long time and is one of the most popular programming paradigms, especially in academic curriculum. Unfortunately, pure object oriented programming is not the best solution to many problems. This is why in certain industries, like game development, the idea of composition has risen in popularity to overtake inheritance from object oriented programming. In this video I will explain the differences between inheritance and composition through one example program. I will also go in depth about the problems with using inheritance that composition solves. This was an eye opening concept for me when I first learned about it, and I know use composition all the time in my code.


Materials/References:

Destructoring/Spread Operator Tutorial: https://youtu.be/NIq3qLaHCIs


🧠 Concepts Covered:

- What inheritance is
- What composition is
- The differences between inheritance and composition
- Why composition is better than inheritance
- How to write composition based code


Find Me Here:

My Blog: https://blog.webdevsimplified.com
My Courses: https://courses.webdevsimplified.com
Patreon: https://www.patreon.com/WebDevSimplified
Twitter: https://twitter.com/DevSimplified
Discord: https://discord.gg/7StTjnR
GitHub: https://github.com/WebDevSimplified
CodePen: https://codepen.io/WebDevSimplified


#CompositionVsInheritance #WDS #CleanCode