►Full C++ Series Playlist: • The C++ Programming Language
►Find full courses on: https://courses.mshah.io/
►Join as Member to Support the channel: / @mikeshah
►Lesson Description: In this lesson I discuss the concepts of composition, aggregation, and how they differ from inheritance. Understanding when to use each is important when designing classes. The preference tends to be to avoid deep inheritance chains, and prefer composition when possible. Part of making that decision means understanding when an object should 'have-a' type as part of it, versus the type having a 'is-a' (inheritance) relationship to truly represent a subclass.
►YouTube Channel: / mikeshah
►Please like and subscribe to help the channel!
Watch video Classes part 23 - Composition (and aggregation) versus Inheritance in C++ | Modern Cpp Series Ep. 60 online, duration hours minute second in high quality that is uploaded to the channel Mike Shah 09 May 2022. Share the link to the video on social media so that your subscribers and friends will also watch this video. This video clip has been viewed 8,808 times and liked it 334 visitors.