i have a class as follows
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;
}
}
Now a regular polygon is a polygon whose all sides are equal.What shold be the constructor of my regular polygon
public Regularpolygon extends Polygon{
//constructor ???
}