Last active
August 8, 2019 19:10
-
-
Save fboeller/d4dba5f5d7a756170f25ffffb95853a6 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 Rectangle implements Shape { | |
double x, y; | |
/* ... */ | |
public double diameter() { | |
return Math.sqrt(x * x + y * y); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment