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