The way to read this diagram is it's as if it were my brain and I am facing this way.
查看这张示意图的方法是,设想这是我的大脑,面朝这个方向
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的方法,如果有的话,程序就会调用它,按照惯例。
应用推荐