Interview Questions

1) What is the difference between public, private, and protected inheritance?


Aspect Public Inheritance Protected Inheritance Private Inheritance
Base Class Members Inherited as they are. Public and protected become protected. Public and protected become private.