Create a new class, and call it TraceUtil.
创建一个新的类,并称它为TraceUtil。
Suppose that you would like to create a new class called FixedList.
假设您希望创建一个名为 FixedList 的新类。
Create a new class named Lab2Class with the following public operations.
创建名为Lab2Class的新类,包含以下共有方法。
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?
这就是我们要讲模块化的地方了,现在我可以说,我创建了一个新类,我可以创建线段的实例了,这些实例的元素?
应用推荐