One of the things that I defined inside my class definition here was an internal method.
就是这里的内部方法,这个方法有个名字,这很明显,那么这个方法。
So another way saying it again is, when I call the class definition, by default I'm going to look to see is there an init method there, and if there is, I'm going to use it.
当我调用类的定义,默认的是语言要去查看,是不是有个init的方法,如果有的话,程序就会调用它,按照惯例。
应用推荐