Skip to content

Instantly share code, notes, and snippets.

@deleteman
Created November 7, 2020 07:09
Show Gist options
  • Save deleteman/5a08bff5b0964e663ea20dd36958bdce to your computer and use it in GitHub Desktop.
Save deleteman/5a08bff5b0964e663ea20dd36958bdce to your computer and use it in GitHub Desktop.
class Rectangle {
width
height
constructor(w, h) {
this.width = w;
this.height = h
}
setWith(w) {
this.width = w
}
setHeight(h) {
this.height = h
}
}
class Square extends Rectangle{
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment