Last active
March 16, 2019 15:42
-
-
Save vincentius15/c8c1983aff2342381d080709caaf449c to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public interface Shape{ | |
double area(); | |
} | |
public class Square { | |
private int topLeftCoordinateX; | |
private int topLeftCoordinateY; | |
private int side; | |
public double area(){ | |
return Math.pow(square.side, 2); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment