Skip to content

Instantly share code, notes, and snippets.

@ssougnez
Last active June 10, 2018 14:31
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ssougnez/c19243c54bdbc84acd61893ca5abfdab to your computer and use it in GitHub Desktop.
Save ssougnez/c19243c54bdbc84acd61893ca5abfdab to your computer and use it in GitHub Desktop.
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