Classes part 20 - CAUTION Multiple Inheritance (and example of using it) | Modern Cpp Series Ep. 56

preview_player
Показать описание

►Lesson Description: In this lesson I show you how multiple inheritance works in C++. In general, we try to avoid multiple inheritance, especially when you have deep hierarchies of custom defined user types. That said, using multiple inheritance to add a specific behavior (or policy) can sometimes be helpful when used with care. That said, with all features, use carefully!

►Please like and subscribe to help the channel!
Рекомендации по теме
Комментарии
Автор

Very neatly explained as always. Thank you.

dhanushs
Автор

Thanks for the great video. I have a quick question regarding the situation shown in the video. Let's say, Dog is not inherited from noncopyable. Golden is inherited from Dog and noncopyable, whereas BorderCollie is only inherited from Dog. Given a pointer of Dog, is there a way to know if it is copyable or not?

charliezhao
Автор

Hi Mike. Small Doubt. Does this inheritance seems to Multipath(A derived class with 2 base classes and these 2 base classes have common base class i.e. the diagram @3.22/14.26 ) instead of Multiple. correct me if am wrong. diamond problem can be solved by virtual Inheritance.

bullikoti
Автор

Can you group your serries become playlist so that we can easily study them again

binhnguyenthanh