Created
August 7, 2024 15:03
-
-
Save wspringer/b389f5e7ab8956840597e426f941aef7 to your computer and use it in GitHub Desktop.
This file contains hidden or 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 Circle { | |
private radius: number; | |
constructor(radius: number) { | |
this.radius = radius; | |
} | |
circumference() { | |
return Math.PI * 2 * this.radius; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment