Is it ok to call super.superClassMethod() in a constructor in Java?

前端 未结 0 1249
-上瘾入骨i
-上瘾入骨i 2021-01-30 02:45

I was taught that it is bad practice to call an overridable method in a constructor. What if I explicitly call the method of the parent class? Something like:

pub         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题