The reason I want to point this out to you is, if we go back up to the kinds of data objects we started with, floats, ints, strings, they actually behave the same way.
我要为大家指出这一点的原因是,如果我们想一下以前讲过的,数据类型的种类,浮点数,整数,字符串,它们实际上有相同的行为方式。
same point It says, if you give me two of these data objects, I'm going to call them p 1 and p 2.
的代码,What,does,it,say,to,do?,你可以看看它,它是用来做什么的呢?,它的意思是,如果你给我两个。
What we're really doing, or I shouldn't say what we're really doing, a basic piece of what we're doing, when we talk about classes or objects, is we're doing something that Professor Guttag mentioned, we're defining an abstract data type.
或者我不应该,说我们真正要做的,当我谈到类或者对象的时候,我们在做的基本的东西,如Guttag教授提到的,就是定义一个抽象数据类型,那么这到底是什么意思呢?
应用推荐