Skip to content

Instantly share code, notes, and snippets.

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