Skip to content

Instantly share code, notes, and snippets.

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