Why we need to set the variable private / public?
Posted
by Tattat
on Stack Overflow
See other posts from Stack Overflow
or by Tattat
Published on 2010-04-06T09:38:41Z
Indexed on
2010/04/06
9:43 UTC
Read the original article
Hit count: 118
programming-languages
Why don't make all variable private? All the variables must give a getter, setter to modify/read. Why leave the "public" keyword here? Except for convenient, any another reason for that?
© Stack Overflow or respective owner