类:关于如何创建类和接口的模式。
就是在这里用uml定义来创建类。
可以用class关键字创建类。
Now I have the ability to say, I've got a new class, I can create instances of a line segment, and it's elements are themselves instances of points. OK?
这就是我们要讲模块化的地方了,现在我可以说,我创建了一个新类,我可以创建线段的实例了,这些实例的元素?
OK, so as I said, now I can go off and I could create a different class.
好,正如我所说,现在我可以进行下去,去创建一个不同的类了。
Notice the form of it, it's just the name of the class followed by open paren, close paren, treating it like a function.
我该怎么来使用类呢?,好,我可以像调用方法,一样调用类,你可以在下面看到,创建一个名为。
应用推荐