Type a subclass constructor that calls super()
Type a subclass constructor that calls super()
Answer
Dog(String name, String breed) { super(name); this.breed = breed; }
super(name) delegates to Animal's constructor. It must appear before any other statement. The compiler inserts super() automatically only when the parent has a no-arg constructor.