How to call super class constructor in Java?

To call super class constructor in Java, do this: super(arguments).

Here's how you do it:

class Animal {

  String name;

  public Animal(String name) {
    this.name = name;
  }
}

class Cat extends Animal {

  public Cat(String name) {
    super(name);
  }
}

Animal cat = new Cat("Mr. Paws");