Derived class may not be PUBLIC when parent is PRIVATE: <class name>

You defined a Public class whose base class is Private. The base class from which a Public class is derived cannot be Private.

Change the definition of the base class to Public, or change the derived class to Private.