Which type of inheritance is used?
struct B { /*...*/ };
struct A: B { /*...*/ };
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
Зворотній Зв’язок
Зареєструйся Зараз
або Підпишись на майбутні тести