public class Foo {
private int x;
public Foo() {
this(1);
}
public Foo(int x) {
this.x = x;
}
}
In Java another constructor of the same class can be called from a
constructor via this().
Note however that this has to be on the first line.
Vehicle firstCar = new Vehicle(1990, "Chrysler", "Lebaron", 200000, 4000);