Which type of inheritance is used?
struct B { /*...*/ };
struct A: B { /*...*/ };
Explanation
The default type of the inheritance depends on the inheriting (derived) type, not on the one that is being inherited (base).

For example:
class A {};
struct B: /* public */ A {};
struct A {};
class B: /* private */ A {};
Source: default inheritance access specifier

Следи за CodeGalaxy

Мобильное приложение Beta

Get it on Google Play
Обратная Связь
Cosmo
Зарегистрируйся сейчас
или Подпишись на будущие тесты