Skip to content

Instantly share code, notes, and snippets.

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