protected is useful when you want your class and all derived (child) classes to be able to access the method or variable, but you don't want it to be public.
The protected keyword is used with inheritance to acess/modify a attribue in a base class