1 package shapes; 2 3 /* 4 This program affords opportunities to explore the solutions of simple geometrical problems with the use of construction and shapes 5 */ 6 public class ShapesThing { 7 8 public static void main(String[] args) { 9 SSquare square = new SSquare(400); 10 System.out.println("Square = " + square.toString()); 11 System.out.println("Area of square = " + square.area()); 12 System.out.println("Perimeter of square = " + square.perimeter()); 13 System.out.println("Diagonal of square = " + square.diagonal()); 14 15 SCircle disk = square.inscribingCircle(); 16 System.out.println("Disk = " + disk.toString ()); 17 System.out.println("Area of disk = " + disk.area()); 18 System.out.println("Perimeter of disk = " + disk.perimeter()); 19 20 SSquare diamond = disk.inscribingSquare(); 21 System.out.println("Diamond = " + diamond.toString()); 22 System.out.println("Area of diamond = " + diamond.area()); 23 } 24 } 25