Created
May 16, 2022 18:01
-
-
Save Caballerog/7f2c14bf86ad61fd905a286df42ec12d 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 Character { | |
_name!: string; | |
constructor(name: string){ | |
this._name = name; | |
} | |
get name(): string { | |
return this._name; | |
} | |
set name(value: string) { | |
this._name = value; | |
} | |
} | |
class CharacterRepository { | |
save(character: Character): void{ | |
// Actions | |
} | |
delete(character: Character): void { | |
// Actions | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment