Skip to content

Instantly share code, notes, and snippets.

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 Caballerog/d66f79c12dbe81779a12b9a580cc8b40 to your computer and use it in GitHub Desktop.
Save Caballerog/d66f79c12dbe81779a12b9a580cc8b40 to your computer and use it in GitHub Desktop.
class Character {
_name!: string;
constructor(name: string){
this._name = name;
}
get name(): string {
return this._name;
}
set name(value: string) {
this._name = value;
}
saveCharacterDB(character: Character): void{
// Actions
}
deleteCharacterDB(character: Character): void {
// Actions
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment