java - Constructor this() unnecessary? -


there class u1 extending class u. class u empty...

in constructor of u1 there first line, calling constructor of superclass...

public u1(plate plate, int order) {    super(plate, order); ...  } 

now want delete class u1 , in class u whatever done in u1 far... so, not need call constructor of superclass since class u not gonna have superclass...

is this(plate, order) unnecessary , can omit it?

this how constructor of u gonna like:

public u(plate plate, int order)     {        this(plate, order);     ...      } 

it unnecessary , expect results in stack overflow, because call constructor within constructor.


Comments

Popular posts from this blog

c++ - llvm function pass ReplaceInstWithInst malloc -

java.lang.NoClassDefFoundError When Creating New Android Project -

Decoding a Python 2 `tempfile` with python-future -