A geometry example
class Shape {
public final double PI = 3.14159;
protected String name;
public String getName () {
return (this.name);
} // getName
public int area () {
return (0);
} // area
} // Shape
Shape
Circle
Rectangle
Previous slide
Next slide
Back to first slide
View graphic version