1 2 public class Main { 3 public static void main(String[] args){ 4 Figure figure = new Figure(); 5 double area = figure.getArea(10,"EquilateralTriangle"); 6 System.out.println("Area is : " + area); 7 } 8 }