Skip to content

Instantly share code, notes, and snippets.

@fboeller
Last active August 8, 2019 18:17
Show Gist options
  • Save fboeller/34646a754b5b8a2ad310fea724184424 to your computer and use it in GitHub Desktop.
Save fboeller/34646a754b5b8a2ad310fea724184424 to your computer and use it in GitHub Desktop.
class Rectangle implements Shape {
double x, y;
public double perimeter() {
return (x + y) * 2;
}
public double area() {
return x * y;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment