org.apache.cocoon.samples.tour.shapes
Class Square
java.lang.Object
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 |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Square
public Square(float b)
- Creates a new instance of Square
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.