Код: Выделить всё
class App
{
// Basic structure of the app
}
class Win32Window
{
// Window functionality
}
class Win32Input
{
// Input functionality
}
class Graphics
{
// Graphics functionality
}
Теперь предположим, что другой класс наследует такие классы --
р>
Код: Выделить всё
class SomeClass final: public App, public Win32Window, public Graphics, public Win32Input
{
// Overrides some virtual methods of base classes or use their implementation
}
У меня нет проблем с использованием этого способа наследования, но я хочу знать, не является ли это плохой практикой
п>
Подробнее здесь: https://stackoverflow.com/questions/787 ... -if-so-the