Witscale Test Center

3.8 Constructors and modifiers > 3.8.3 Constructor with protected access


3.8.3 Constructor with protected access

When a class has protected constructors, the classes within its package and all the subclasses of the class can access it to create the objects of that class. The subclasses may be in other package, but still can create the objects of a class with protected-access constructor.