<specifier1> <type> cannot inherit from a <specifier2> <type> because it expands the access of the base <type>
You have attempted to have a public class inherit from a base class marked Private or Friend.
Error ID: BC30509
To correct this error
Declare the base class Public or declare the inheriting class Private or Friend.