Protected attributes can be accessed by methods of the class and its subclasses.