Or another way of thinking about it, is remember I said when I call that class definition it creates an instance, that's a pointer to some spot in memory that's got some local information around it.
也就是一个指向,内存中某处的指针,这个地方存有一些,这个实例的信息,浅意义的相等也就是说,看看这两个东西是不是。
One nice thing, by the way -- this is just chance I think -- the median answer in the class was nine, which is spot on, so the median hit this bang on.
顺便提一下,有趣的是,我就是顺便提一嘴,班级中位数也是9,中位数正好也是游戏的答案
For now the way to think about this is, cp2 when I call that class definition, it goes off and allocates a specific spot in memory that corresponds to that instance.
这个语句所做的,就是建立了,这个类型的实例cp1和,这个类型的特定版本,现在你们可以这么认为。
应用推荐