So inside of an instance, associated with an instance, we have both methods and fields.
还有一些内部变量,实际上我该这么说,我们通常把这些东西称为域。
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.
一个人仅仅可以访问实例变量,或者,我们可以这么来说,通过定义好的方法,来访问实例的变量。
应用推荐