The scripts are in the middle, the sprites are on the right hand side, so when I have the stage selected at the moment, I'm seeing the script that are associated with sort of the whole program itself, the so called stage.
这些脚本在中间,这些精灵都在右边,当我们选择了某一刻的场景,我们就会看见与整个方案相关联的,脚本,这就是所谓的场景。
they will have a community that they can connect with here in San Francisco.
在旧金山,总有一个地方可以与他们相关联。
So for example, I can say, what are all the methods associated with the number,or the integer 1?
所有与数字,或者说整数,相关联的方法是哪些?,你可能已经认出一些来了?
It's connected with a number of things.
它与很多因素相关联
It could also say, what are the methods associated with the string, 1. I'm sure you can quickly graph it, but notice they aren't the same.
我们也可以说,与字符串1相关联的方法有哪些?,我相信你们可以很快的求出来,但是请注意这跟前面的。
They are instances of a class, and associated with that class is a set of methods.
它们是同一个类的实例,与这个类相关联的是一个方法集,因此例如,我可以说。
These are both altogether called attributes of the instance.
因此在一个实例里面,与之相关联的,是方法和域。
Sometimes the functions -- sometimes a function can be used on multiple data types, plus, for example, we saw could add strings, or could add ints, but each one of those data types has associated with it a set of functions that are geared to handling them.
比如说,我们可以对string类型,进行add操作,也可以对int类型进行这个操作,但是这些数据类型中的每一种,都与适合于操作它们的,方法集相关联,我们想对我们创建的数据,类型做同样的事情。
应用推荐