Skip to content

Instantly share code, notes, and snippets.

@vincentius15
Last active March 16, 2019 15:42
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save vincentius15/c8c1983aff2342381d080709caaf449c to your computer and use it in GitHub Desktop.
Save vincentius15/c8c1983aff2342381d080709caaf449c to your computer and use it in GitHub Desktop.
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