same point Cartesian to have 1 representation for a point that supports different ways of getting information out, but has gathered within it, a method or a function for dealing with things like how do I know if it's the same point or not.
还有,这是一个比较极坐标的点,是否相同的不同的方法,但是这开始成了一个麻烦事儿了,我真正想要做的事情是,创建一个能支持不同的方式,输出已经收集的信息的点的表示。
And that's a wonderful thing to have because it gives you that modularity, that encapsulation that basically says, when I create a point, the only way I can get at the values, is by using one of the defined methods, in this case it could be Cartesian, Cartesian and get all the pieces of that.
这是很棒的一件事情,因为它让你有了,模块性以及封装性,这基本上也就是说,当我创建了一个点,我能够得到它的值的唯一的方式,就是用一个定义好的方法,在这个例子中也就是。
Second thing they're going to do is let us suppress detail. And in essence what that does is, the functions, and we're going to look at a bunch of examples in a second, these functions are going to give us a way to, in some or in one way of thinking about it is to create new primitives.
第二件要做的事,是忽略细节,函数的本质到底是什么,我们将在接下来的几分钟,举一些例子,这些函数将给我们提供,一种创建原语的思考方式。
应用推荐