Created
March 26, 2020 02:12
-
-
Save hw0k/8382a49668ab983f390a8562bb33baf7 to your computer and use it in GitHub Desktop.
LID 8
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
const rec: Shape = new Rectangle(3, 4); | |
console.log(rec.area); // 12 | |
const sq: Shape = new Square(4); | |
console.log(sq.area); // 16 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment