blob: 09767faa9636eda6b26f970a5c852e3c2b9c4597 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
public interface Shape2d {
/**
* Calculates the area of the 2d shape.
* @return Area in UNIT^2
*/
public double area();
/**
* Returns the perimeter around the shape.
* @return Perimeter in UNIT
*/
public double perimeter();
}
|