If a class is derived private from a base class explain how
If a class is derived private from a base class, explain how this affects the inheritance of all public, protected, and private members of the base class by the derived class
Solution
A childclass inherits all public and protected members and methods of super class.
If childclass has the same package as its super class, it can inherit the package private members of the super class.
A childclass does not inherit the private members of its super class.
If the superclass has public or protected methods for accessing its private fields, these can also be used by the childclass
