What is the actual purpose of using private access specifier? | Sololearn: Learn to code for FREE!
Novo curso! Todo programador deveria aprender IA generativa!
Experimente uma aula grƔtis
+ 1

What is the actual purpose of using private access specifier?

26th Feb 2017, 5:34 AM
Sameeraja Bharathula
2 Respostas
+ 11
To limit access of specified objects and methods to within that class only.
26th Feb 2017, 5:41 AM
Hatsy Rei
Hatsy Rei - avatar
0
have you seen private posts on fb? same thing...to hide.
26th Feb 2017, 7:41 AM
Raj Kumar Chauhan
Raj Kumar Chauhan - avatar