1 /* 2 * File: Rhombus.java 3 * 4 * Rhombus class 5 * 6 * Copyright: Northeast Parallel Architectures Center 7 * 8 */ 9 10 // A rhombus is a parallelogram with equal sides: 11 public class Rhombus extends Parallelogram { 12 13 // Rhombus constructor #1: 14 public Rhombus( int x, int y, int size, double alpha ) { 15 16 // invoke a constructor of the superclass: 17 super( x, y, size, size, alpha ); 18 19 } 20 21 // Rhombus constructor #2: 22 public Rhombus( int x, int y, int size, double alpha, double theta ) { 23 24 // invoke a constructor of the superclass: 25 super( x, y, size, size, alpha, theta ); 26 27 } 28 29 }