/home/ssingh6/NetBeansProjects/CS1/src/shapes/ShapesThing.java
 1 /*
 2  * To change this license header, choose License Headers in Project Properties.
 3  * To change this template file, choose Tools | Templates
 4  * and open the template in the editor.
 5  */
 6 package shapes;
 7 import shapes.SSquare;
 8 import shapes.SCircle;
 9 
10 /**
11  *
12  * @author ssingh6
13  */
14 public class ShapesThing {
15 
16     /**
17      * @param args the command line arguments
18      */
19     public static void main(String[] args) {
20        SSquare square = new SSquare(400);
21        System.out.println("square"+ square.toString());
22        System.out.println("area of square="+ square.area());
23        System.out.println("perimeter of square="+square.perimeter());
24        System.out.println("diagonal of square="+square.diagonal());     
25      SCircle disk = square.inscribingCircle();
26        System.out.println("disk="+disk.toString());
27        System.out.println("Area of disk"+ disk.area());
28        System.out.println("Perimeter of disk" +disk.perimeter());
29         SSquare diamond = disk.inscribingSquare();
30         System.out.println("diamond"+diamond.toString());
31         System.out.println("Area of diamond="+diamond.area());
32       
33       
34         
35         
36         
37 
38     }
39     
40 }
41