Last active
June 10, 2018 14:31
-
-
Save ssougnez/c19243c54bdbc84acd61893ca5abfdab 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
export class Student { | |
private _name: string; | |
private _age: number; | |
constructor(name: string, age: number) { | |
this._name = name; | |
this._age = age; | |
} | |
public toString() { | |
return `${this._name}: ${this._age} years old`; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment