File
Doc
Category
Size
Date
Package
Rectangle.java
API Doc
Example
519
Wed Apr 20 15:07:24 BST 2005
None
Rectangle
java.lang.Object
Shape
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
double
area
()
return w*h;
public
double
circumference
()
return 2*(w + h);
public
double
getHeight
()
return h;
public
double
getWidth
()
return w;
Java Code Source