What does super() mean in a constructor?

class, inheritance, java

Solution

It calls the parent class's constructor

Problem

What does the code ``` super(); ``` do inside of a constructor? For example, here is a constructor for my class ``` public abstract class Rectangle extends AbstractShape { private double height, width; // Constructors... public Rectangle() { super(); //this is how i inherit that point! height = -1; width = -1; } ``` Does it have something to do with super-classes?

Original source

Related problems