请注意,这是一个抽象的 EMF 类。
有实效的设计——以实效的方式,将一系列抽象的注意转化为功能可用的软件。
Translate a set of abstract ideas into working and functional software in an effective way.
注意抽象类如何定义一个构造函数,该函数接收属性的一个map—我总是可以稍后添加更多构造函数,稍后我就会这么做。
Note how the abstract class defines a constructor that takes a Map of properties - I can always add more constructors later, and I will shortly.
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.
我现在运行了一对循环,再一次注意这个封装,抽象得很好,这就是我想要的结果,我按这种方式走到这一步的时候,可能会有多组答案。
应用推荐