Last active
October 16, 2020 02:35
-
-
Save talesmgodois/629ec06c227106023f5ac9238a645d9e to your computer and use it in GitHub Desktop.
This file contains hidden or 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 EBreeds { | |
public code:string; | |
public desc: string; | |
public static readonly AKITA = new EBreeds('AKITA', 'Cão grande branco e peludo'); | |
public static readonly SCOTTISH_TERRIER = new EBreeds('SCOTTISH_TERRIER', 'Cão pequeno'); | |
private constructor(code: string, desc: string) { | |
this.code = code; | |
this.desc = desc; | |
} | |
public toString(): string { | |
return this.code; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment