FileDocCategorySizeDatePackage
Rectangle.javaAPI DocExample519Wed Apr 20 15:07:24 BST 2005None

Rectangle

public class Rectangle extends Shape

Fields Summary
protected double
w
protected double
h
Constructors Summary
public Rectangle(double w, double h)

               // Constructor
    this.w = w;  this.h = h; 
  
Methods Summary
public doublearea()

 return w*h; 
public doublecircumference()

 return 2*(w + h); 
public doublegetHeight()

 return h; 
public doublegetWidth()

 return w;