Subclass Constructors. This constructor explicitly initializes the cx and cy fields newly defined by PlaneCircle , but it relies on the superclass Circle() constructor to initialize the inherited fields of the class. To invoke the superclass constructor, our constructor calls super(). super is a reserved word in Java.
Read moreDo subclasses inherit constructor?
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.
Read moreDoes a subclass need to have a constructor quizlet?
Does a Subclass need to have a constructor? Yes, the subclass has its own constructor , either explicit or implicitly created.
Read more