Created
September 16, 2019 18:31
-
-
Save yogeshkoli/97d7be4c487ac513a4fee6b5a28cfc75 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 Calculation { | |
constructor(private x: number, private y: number) {} | |
add() { | |
console.log(this.x + this.y); | |
} | |
} | |
let calc = new Calculation(10, 20); | |
calc.add(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment