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