org.apache.cocoon.samples.tour.shapes
Class Rectangular
java.lang.Object
org.apache.cocoon.samples.tour.shapes.Rectangular
- All Implemented Interfaces:
- Shape
public class Rectangular
- extends Object
- implements Shape
Rectangular Shape for tour block java-shapes sample
Constructor Summary |
Rectangular(double h,
double b)
Creates a new instance of StrCount |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Rectangular
public Rectangular(double h,
double b)
- Creates a new instance of StrCount
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.