Name access modifiers in terms of strictness. | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 2

Name access modifiers in terms of strictness.

whether its private default protected public or default private protected public

9th Jun 2018, 11:18 AM
Sumit Mishra
Sumit Mishra - avatar
2 Answers
+ 6
It is private modifier. Private members cannot be accessed outside the class they are declared
9th Jun 2018, 1:37 PM
Muhd Khairul Amirin
Muhd Khairul Amirin - avatar
0
what about default?
10th Jun 2018, 6:06 AM
Sumit Mishra
Sumit Mishra - avatar