Last active
November 2, 2018 16:34
-
-
Save seanpmaxwell/23f48980d5e6bbde05608c138e224c6b 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
/** | |
* TypeScript file for the "Dog" class | |
* | |
* created by sean maxwell Nov 1, 2018 | |
*/ | |
class Dog extends Animal | |
{ | |
furColor: string | |
private _breed: string | |
public readonly SPECIES = 'canis familiaris' | |
constructor() {} | |
// Use I/O to fetch gene sequence which | |
// gets updated over time. | |
public getFullGeneticSequence(): string | |
{ | |
return this.genomeFinderLib_(this.SPECIES, this._breed) // is genomeFinderLib_ is protected variable | |
} | |
get breed(): string | |
{ | |
return this._breed | |
} | |
set breed(breed: string) | |
{ | |
this._breed = breed | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment