What is the difference between protected and private?
Things that are private
are only visible within the class itself.
Things that are protected
are visible in the class itself and in subclasses.
private
- only available to be accessed within the class that defines them.
protected
- accessible in the class that defines them and in other classes which inherit from that class.