Is it OK to call abstract method from constructor in Java? [duplicate]
问题 This question already has an answer here: What's wrong with overridable method calls in constructors? 7 answers Let\'s suppose I have an abstract Base class that implements Runnable interface. public abstract class Base implements Runnable { protected int param; public Base(final int param) { System.out.println(\"Base constructor\"); this.param = param; // I\'m using this param here new Thread(this).start(); System.out.println(\"Derivative thread created with param \" + param); } @Override