How to call method from parent in Java?
<pre><code>import java.util.Random;

class VehicleConstructor{

    private int startSpeed;

    public VehicleConstructor() {
        setSpeed();
        System.out.println("VehicleConstructor");
    }

    private void setSpeed(){
        int minSpeed = 1;
        int maxSpeed = 40;

        Random random = new Random();
        this.startSpeed = random.nextInt(maxSpeed - minSpeed + 1) + minSpeed;
    }
}

class Bicycle extends Vehicle{

    public Bicycle(){
        System.out.println(getSpeed());
    }
}

public class Vehicle{
    public static void main(String[] args){
        Bicycle bicycle = new Bicycle();
    }
}
</code></pre>

<p>The problem is in <code>Bicycle</code> class where i try to call <code>getSpeed()</code> method from <code>VehicleConstructor</code> class. I also tried it with <code>this</code> and <code>super</code>. What is wrong?</p>
