The protected keyword is an access modifier used for attributes, methods and constructors , making them accessible in the same package and subclasses.
The protected keyword is an access modifier used for attributes, methods and constructors , making them accessible in the same package and subclasses.