Created
July 2, 2019 14:18
-
-
Save wongjiahau/0660e8cb9965fd14946b825444f90798 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
interface Shape {} | |
class Circle extends Shape { | |
constructor(public radius: number) {} | |
} | |
class Rectangle extends Shape { | |
construtor(public height: number, public width: number) {} | |
} | |
class Triangle extends Shape { | |
constructor(public height: number, public base: number) {} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment