Calling a base class constructor from derived class in Java
<p>I have a class as follows:</p>

<pre><code>public class Polygon  extends Shape{

    private int noSides;
    private int lenghts[];

    public Polygon(int id,Point center,int noSides,int lengths[]) {
        super(id, center);
        this.noSides = noSides;
        this.lenghts = lengths;
    }
}
</code></pre>

<p>Now a regular polygon is a polygon whose all sides are equal.  What should be the constructor of my regular polygon?</p>

<pre><code>public Regularpolygon extends Polygon{

//constructor ???
}
</code></pre>
