Is this possible to call super constructor on some condition? I have below code
private static final class AuditDataTable extends AuditDataModel<DiscrepanciesVO> {
private AuditDataTable (){
super();
}
}
But i will want to call super() when some Boolean class variable is true .How can i achieve this ?
Now above super() will call this
public AuditDataModel() {
super();
AuditResulstBean.setAuditResultRowCount(0);
AuditResulstBean.setAuditResultRowCheck(false);
}
But i want top level class super() constructor not called when some condition is false.