So this is one more example of stressing why I only want to come access to the instances through defined methods.
其他相关的值也会变化,我想要这些值会一起变化,这就是另外一个强调为什么。
I think of data hiding as basically saying, one can only access instance values, or, we'll call them that, instance values through defined methods.
一个人仅仅可以访问实例变量,或者,我们可以这么来说,通过定义好的方法,来访问实例的变量。
应用推荐