// This appears in Core Web Programming from
// Prentice Hall Publishers, and may be freely used
// or adapted. 1997 Marty Hall, hall@apl.jhu.edu.

/** A closed Shape with straight edges. */

public abstract class Polygon extends StraightEdgedShape
                              implements Measurable {
  private int numSides;

  public int getNumSides() {
    return(numSides);
  }

  protected void setNumSides(int numSides) {
    this.numSides = numSides;
  }
}

