Question: what is the difference between protected and private?
Answer: 5 Answers. 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.