Running a method after the constructor of any derived class

前端 未结 6 1105
时光说笑
时光说笑 2020-12-31 00:07

Let\'s say I have a Java class

abstract class Base {
    abstract void init();
    ...
}

and I know every derived class will have to call <

6条回答
提交回复
热议问题