Multiple Inheritance in C ++

As you know, C ++ allows multiple inheritance. But would it be a good programming approach for using multiple inheritance or should it be avoided?

Thank.

+3
source share
1 answer

In general, it is not needed and can make your code more complex.

But there are times when it is useful. As long as this is useful and does not cause your code to become unmanageable, I see no reason to avoid it.

+3
source

Source: https://habr.com/ru/post/1787703/


All Articles