Worked example
class Dog extends Animal {
public Dog(String name) {
super(name); // runs Animal's constructor to set the inherited name
}
}
super(name) calls Animal(name), which stores the name. It must come first, before the subclass does anything else.