And if you think about it, associated with each - one of those data types is a set of functions it's intended to apply to.
你会发现每个类型都有,与之对应的一个集合的操作,有的时候这些操作,有的时候某个操作可以,应用于多种数据类型。
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类型进行这个操作,但是这些数据类型中的每一种,都与适合于操作它们的,方法集相关联,我们想对我们创建的数据,类型做同样的事情。
应用推荐