What are the 3 scopes that a class property or method can be declare as? What is the difference?
Responses =
- Private – the property/method can only be used by the class that defined it
- Protected – the property/method can only be used by the class that defined it and any sub-classes
- Public – the property/method can be called by any class