Forum Discussion
PrathyushaCH
Occasional Contributor
Got this. But with this process Iam only able to access public methods but not private and protected methods
rraghvani
3 months agoChampion Level 3
In most programming languages, there are three access modifiers:
Public - the property or method can be accessed from everywhere. This is default.
Protected - the property or method can be accessed within the class and by classes derived from that class.
Private - the property or method can ONLY be accessed within the class.
You won't be able to access protected or private members.
Related Content
- 2 years ago
- 2 years ago
Recent Discussions
- 2 days ago
- 2 days ago