Are constructors inherited in Java?

Answered

Are constructors inherited in Java?

Ninja Asked on 18th September 2018 in Java.
Add Comment
1 Answer(s)
Best answer

No, constructors are not inherited in Java. A subclass inherits all the members (fields, methods, and nested classes) from its superclass. Constructors are not members, so they are not inherited by subclasses, but the constructor of the superclass can be invoked from the subclass.

Ninja Answered on 18th September 2018.
Add Comment