This combining of data and functions on that data is a very essence of object-oriented programming That's really what defines it.
数据与函数的结合,是面向对象编程的核心,这也就是它的定义。
Now these ideas of classes, object-oriented programming, data abstraction, are about 40 years old, they're not new ideas.
面向对象编程的概念,数据抽象的概念,都是40年前就有的老东西了。
And the problem is, that we want to build this abstract data type, but we'd like to basically know what kind of object is it, and what functions actually belong to it, how do we use them?
然后我对它们运行了这个方法,就是这一小段代码这个方法,这有意义么?,当然没有了,对不对?,因为你知道,当你把两个极坐标,表示的点进行相加运算的时候?
And we're going to use this object-oriented programming, typically to create something called data abstractions.
在接下来的几天,你会明白我们这里说的具体含义,它的一个同义词。
An object is a collection of data and functions.
对象就是数据和函数的集合。
应用推荐