Skip to content

Instantly share code, notes, and snippets.

@seanpmaxwell
Last active November 2, 2018 16:34
Show Gist options
  • Save seanpmaxwell/23f48980d5e6bbde05608c138e224c6b to your computer and use it in GitHub Desktop.
Save seanpmaxwell/23f48980d5e6bbde05608c138e224c6b to your computer and use it in GitHub Desktop.
/**
* 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