public class Child extends Parent { // when unspecified, Java automatically calls (executes) immediate parent's default constructor public Child() { System.out.println("Child: default constructor"); } // when specified, Java calls the specified parent's constructor // IF super(name) was not specified, it would have called super() public Child(String name) { super(name); System.out.println("Child: non-default constructor " + name); } }