Created
January 29, 2017 09:49
-
-
Save cyrilletuzi/6570d28f9d0828bac72aa22b889ea121 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 User { | |
public firstName: string; // TypeScript only | |
public constructor(firstName: string) { | |
this.firstName = firstName; | |
} | |
public sayHello(): void {} | |
} | |
let myUser: User = new User(`Henri`); | |
myUser.firstName; | |
myUser.sayHello(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment