/* Class to hold the blueprint of a geometric shape like * a circle, triangle, or rectangle. * The class comes with a basePoint, which will usually be * the upper left corner of the geometric shape, methods to * calculate the area and to translate (move) the geometric * shape, and a method that will return the base point. */ abstract class Shape{ private Pixel basePoint; // base point Shape(){}; Shape(Pixel bp){this.basePoint = bp;} abstract double area(); abstract void translate(int x, int y); Pixel getBasePoint(){return basePoint;} }