org.apache.cocoon.samples.tour.shapes
Class Square

java.lang.Object
  extended by org.apache.cocoon.samples.tour.shapes.Square
All Implemented Interfaces:
Shape

public class Square
extends Object
implements Shape

Square Shape for tour block java-shapes sample


Constructor Summary
Square(float b)
          Creates a new instance of Square
 
Method Summary
 double getArea()
           
 String getName()
           
 double getPerimeter()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Square

public Square(float b)
Creates a new instance of Square

Method Detail

getName

public String getName()
Specified by:
getName in interface Shape

getArea

public double getArea()
Specified by:
getArea in interface Shape

getPerimeter

public double getPerimeter()
Specified by:
getPerimeter in interface Shape


Copyright © 1999-2010 The Apache Software Foundation. All Rights Reserved.