Another class (p. 142 in text)
Class Rectangle {
int length, width;
public Rectangle (int side1, int side2) {
length = side1; width = side2; }
public int area () {
return (length * width);
}
Previous slide
Next slide
Back to first slide
View graphic version