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

java.lang.Object
  extended by 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
 
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

Rectangular

public Rectangular(double h,
                   double b)
Creates a new instance of StrCount

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.