diff options
author | Julian T <julian@jtle.dk> | 2020-09-15 18:51:31 +0200 |
---|---|---|
committer | Julian T <julian@jtle.dk> | 2020-09-15 18:51:31 +0200 |
commit | 4bfbc29c7ea0b711f96346deb25dde0b2298ecde (patch) | |
tree | a2df2df4da19fe2ffe6527efc2c3917e009f4d3a /sem5/oop/m4/shapes/src/Shape2d.java | |
parent | 8cc618ebc9fa9dbcf04b17a9d8e23ba1281b419e (diff) |
Added more oop assignments
Diffstat (limited to 'sem5/oop/m4/shapes/src/Shape2d.java')
-rw-r--r-- | sem5/oop/m4/shapes/src/Shape2d.java | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/sem5/oop/m4/shapes/src/Shape2d.java b/sem5/oop/m4/shapes/src/Shape2d.java new file mode 100644 index 0000000..09767fa --- /dev/null +++ b/sem5/oop/m4/shapes/src/Shape2d.java @@ -0,0 +1,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(); +} |