Last active
May 18, 2017 21:11
-
-
Save cnorm35/58b50497298d16a2c168e9e035bfbb7d to your computer and use it in GitHub Desktop.
Javascript OOP Exercise
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
Create an new, empty class for a Dog or Cat. | |
Then create new classes for specific breeds of that animal (German Shepard, Yorkie, Tabby, Maine Coon, etc.). | |
Fill these classes with information you think would be useful and at least 1 method. | |
Look for places where there is duplication and try to move it to the Cat or Dog prototype. | |
(hint: it's ok to start with an empty prototype and add items to the prototype ) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment