Topology abstraction, encapsulation and reuse.
拓扑抽象,封装和重用。
These constructs support the object-oriented form of encapsulation, where only the essential public abstraction of a class or trait is exposed and implementation information is hidden from view.
这些结构支持面向对象式的封装,即本质上只有类或者Trait的公共抽象会被暴露出来,内部实现则被隐藏于视界之下。
Most object-oriented programming languages support data abstraction and encapsulation for information hiding.
大多数面向对象语言均支持信息隐蔽的数据抽象和封装。
OK, so what have I done? I just added a little bit more now. I'm now running through a pair of loops. Again notice the encapsulation, that nice abstraction going on, which is what I want. Once I get to this stage though by the way, there might be more than one solution.
我现在运行了一对循环,再一次注意这个封装,抽象得很好,这就是我想要的结果,我按这种方式走到这一步的时候,可能会有多组答案。
应用推荐