init-method 初始化 ; 初始化方法
Calls the super class init method.
调用超类的init方法。
My init method is neither static nor public.
我的init方法既不是static,也不是public。
Initializing the portlet and putting it into service (init method).
初始化portlet并将其放入服务中(init方法)。
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的方法,如果有的话,程序就会调用它,按照惯例。
应用推荐