The Rhombus Class
The Rhombus class is straightforward: class Rhombus extends Parallelogram { public Rhombus( int x, int y, int size, double alpha ) { super( x, y, size, size, alpha ); } public Rhombus( int x, int y, int size, double alpha, double theta ) { super( x, y, size, size, alpha, theta ); } }
Such is the beauty of object-oriented design!