I have a class as follows:
public class Polygon extends Shape{ private int noSides; private int lenghts[]; public Polygon(int id,Point center,
Your constructor should be
public Regularpolygon extends Polygon{ public Regularpolygon (int id,Point center,int noSides,int lengths[]){ super(id, center,noSides,lengths[]); // YOUR CODE HERE } }