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

get url and add instance to a model with prefilled foreign key :django admin -

css - Make div keyboard-scrollable in jQuery Mobile? -

ruby on rails - Seeing duplicate requests handled with Unicorn -