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

Follow CodeGalaxy

Mobile Beta

Get it on Google Play
Send Feedback
Cosmo
Sign Up Now
or Subscribe for future quizzes