Any way to _not_ call superclass constructor in Java?

后端 未结 13 1364
误落风尘
误落风尘 2020-12-15 04:16

If I have a class:

class A {
   public A() { }
}

and another

class B extends A {
   public B() { }
}

is t

13条回答
  •  执笔经年
    2020-12-15 04:37

    If you don't want to call the superclass constructor, there is something else wrong with your object model.

提交回复
热议问题