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.
一个人仅仅可以访问实例变量,或者,我们可以这么来说,通过定义好的方法,来访问实例的变量。
So this is one more example of stressing why I only want to come access to the instances through defined methods.
其他相关的值也会变化,我想要这些值会一起变化,这就是另外一个强调为什么。
So the purity that's required of a priest, who has access to the sanctuary proper, is higher than that of an Israelite, who has access to the outer courtyard only.
因此那些,能够进入圣所内部的祭司,纯洁度比一般的,只能进入外部庭院的以色列人都要高。
Whereas, right now we only have access to this memory.
然而,现在我们只能使用这个内存。
I'd really like to have that modularity that says, I'm only going to get access to the values, not by calling their names, but by calling some specific method to get access to their names.
这样我们就丢掉了代码的模块化,我很希望代码有这样的模块化:,我访问变量的值,不是通过直接调用它们的名字,而是通过调用某个可以,访问这些变量名的方法来访问。
And then halfway across the courtyard, there was a screen that marked the entrance to another little enclosure, ; which is the shrine proper, the sanctuary proper; and only priests have access to that area.
庭院中途有一个屏,它是另一个小一点的界域的入口,它就是神殿,或者圣所;,只有祭司才能进入。
I would only ever access the values through a method.
如果我真的很讲卫生,我只会通过一个方法来访问变量值。
If we need a 7, this is the ones column, the twos, fours, eights, so here are our columns and this was our decimal system a moment ago, and I wanna express the number 7 and the only digits 0 I now have access to are zero and one, whereas, in decimal, dec meaning 10.
如果你需要7,这是一位,二位,四位,八位,这是位数,刚才说的十进制的位数,我想表达7而且,只能采用数字1与,在十进制中,dec意思是十。
It turns out that this space to which you'll have access throughout the year dubbed the lounge, has not only white boards and screens Xbox for teaching purposes; we may have also slipped in an Xbox, PlayStation a Wii and the PlayStation which actually does help make homework fun.
事实证明,这个你可以利用的一整年都可以使用的交流空间,也就是被称为休息室的地方,不仅有白板和教学用的屏幕,而且还有一个,一台Wii和一台,这些实际上都让写作业变得趣味无穷。
应用推荐