Same way that I have multiplication or division as a primitive, functions are going to give me, or somebody else who wrote them for me as part of a library, a new primitive that I'm going to be able to use.
我在用乘法或者除法当做原语,这些函数,或者别人写程序库中的函数,将会给我返回一个,我能使用的新原语。
And I'm going to put those in quotes, it's a generalization.
我将引用这些原语,这就是继承。
And that in essence says, I've just created the equivalent of a new primitive.
这就是说我创建了,一种新的原语。
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.
第二件要做的事,是忽略细节,函数的本质到底是什么,我们将在接下来的几分钟,举一些例子,这些函数将给我们提供,一种创建原语的思考方式。
应用推荐