Back

Forum Replies Created

Viewing 0 reply threads
  • Author
    Posts
    • #12820
      Java Lover
      Participant

      You essentially do inherit the constuctors in the sense that you can simply call super if and when appropriate, it’s just that it would be error prone for reasons others have mentioned if it happened by default. The compiler can’t presume when it is appropriate and when it isn’t.

      The job of the compiler is to provide as much flexibility as possible while reducing complexity and risk of unintended side-effects.

Viewing 0 reply threads