►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!
Смотрите видео Classes part 23 - Composition (and aggregation) versus Inheritance in C++ | Modern Cpp Series Ep. 60 онлайн, длительностью часов минут секунд в хорошем качестве, которое загружено на канал Mike Shah 09 Май 2022. Делитесь ссылкой на видео в социальных сетях, чтобы ваши подписчики и друзья так же посмотрели это видео. Данный видеоклип посмотрели 8,808 раз и оно понравилось 334 посетителям.