Skip to content

Instantly share code, notes, and snippets.

@esfand
Created February 3, 2016 08:56
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 esfand/44d97408e3e6b3a9b744 to your computer and use it in GitHub Desktop.
Save esfand/44d97408e3e6b3a9b744 to your computer and use it in GitHub Desktop.
export class Hero {
private _id: number;
private _name: string;
private _power: string
private _alterEgo: string
constructor(
public id: number,
public name: string,
public power: string,
public alterEgo?: string
) {
this._id = id;
this._name = name;
this._power = power;
this._alterEgo = alterEgo;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment