public class Polygon2 { private int color; protected double width; protected double height ; private int numSides ; /* public Polygon2( int _col, double _width, double _height) { this.color = _col; this.width = _width; this.height= _height; }*/ public double getArea(){ return this.width * this.height; } public int getColor(){ return this.color; } }