Skip to content

Instantly share code, notes, and snippets.

@BetterProgramming
Created January 17, 2020 21:50
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save BetterProgramming/ae75dcec7b9d1e06f54659c213dcdf3d to your computer and use it in GitHub Desktop.
Save BetterProgramming/ae75dcec7b9d1e06f54659c213dcdf3d to your computer and use it in GitHub Desktop.
class ShapeCalculator {
constructor() {
this.box = new Box();
}
getBoxSurfaceArea() {
return this.box.getArea();
}
getBoxVolume() {
return this.box.getBoxVolume();
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment