Package se.umu.cs.aj.figure
Class Figure
- java.lang.Object
-
- se.umu.cs.aj.figure.Figure
-
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description abstract doublesurface()Abstract class that should return the surface of a figure.java.lang.StringsurfaceString()Prints the surface of the figure.java.lang.StringtoString()
-
-
-
Method Detail
-
surface
public abstract double surface()
Abstract class that should return the surface of a figure.- Returns:
- The surface of the figure in the form of a double.
-
surfaceString
public java.lang.String surfaceString()
Prints the surface of the figure.- Returns:
- A string describing the figure's surface.
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-