C++ Tutorial: Multiple Inheritance // Giving your classes multiple parents

150 Просмотры
Издатель
I'll show you how to use multiple inheritance to make a C++ class inherit from multiple parents. In C++, we're not limited to a class having a single parent class. You can have 1, 2, 3, 100...doesn't matter. You just need to know the syntax.



This is nice because you can flatten your class hierarchy and gives you a bit more flexibility in how you design your programs without making things overly complicated.




/ Learn More //
Check out my complete C++ videos playlist:
https://www.youtube.com/playlist?list=PLaatXkJEXKyIK736SvHJBY6cc8azGaxXo


Check out my C++ Classes playlist:
https://www.youtube.com/playlist?list=PLaatXkJEXKyKxZrRaut4hSIhx6xmwAnZh
Категория
Язык программирования C++
Комментариев нет.