Question: what is the difference between public private and protected inheritance?
Answer: Now the main difference between protected and private inheritance is that the members inherited in protected mode are ready for further inheritance which is not the case for private inheritance. **A protected member is accessible by the member functions within its class and by any CLASS IMMEDIATELY DERIVED FROM IT.