Calling the parent class constructor
Subclasses do not get the parent class constructor, but the subclass constructor can call the parent class constructor to initialize the code
Similar to one constructor calling another constructor:
public class Box {String name; String color; String Weight;public Box (string name,string color) {this.name=name;this.color=color;} Public Box (String name,string color,string weight) {This (name, color);//Use this to invoke another constructor without having to re-write it, which is good for the project this.weight= Weight;}}
Similar to a constructor called by another constructor using this to do the keyword, calling the parent class in the subclass using super as the critical call
Public Mybox (String name,string color,string weight,string height) {Super (name, color,weight);//Use this to invoke another constructor, There is no need to re-write, for the project is good this.height=height;}
Any object that is created is always executed from the top-level constructor of the class's inheritance tree, and then down to the constructor of this class
Java Review of Inheritance II