public class Polygon2 { private int color; protected double width; protected double height ; public double getArea(){ return this.width * this.height; } public int getColor(){ return this.color; } }