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 double
surface()
Abstract class that should return the surface of a figure.java.lang.String
surfaceString()
Prints the surface of the figure.java.lang.String
toString()
-
-
-
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:
toString
in classjava.lang.Object
-
-