AFAIK there are two ways to expose members of a base class to a derived or
child class:
1. declare the members public in the base class
2. declare them as 'protected' in the base class
Is either of these methods generally recommended over the other? If yes,
why?
Thanks!
child class:
1. declare the members public in the base class
2. declare them as 'protected' in the base class
Is either of these methods generally recommended over the other? If yes,
why?
Thanks!
Comment