Last active
August 8, 2019 18:16
-
-
Save fboeller/58d57eb3726544f46a42d27e77120f5c to your computer and use it in GitHub Desktop.
This file contains 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
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