Created
November 7, 2020 07:09
-
-
Save deleteman/5a08bff5b0964e663ea20dd36958bdce 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 { | |
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