Created
January 27, 2016 00:02
-
-
Save zedd45/3518c1ee21b6b623e536 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
'use strict'; | |
class Animal { | |
constructor () { | |
} | |
eat (food) { | |
} | |
} | |
// Define a Dog that can bark, and has the same methods and properties of Animal | |
class Dog extends Animal { | |
bark () { | |
} | |
} | |
exports.Animal = Animal; | |
exports.Dog = Dog; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment