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