Instructions:
-
Clone this repository
$ git clone git@github.com:sf-wdi-14/inheritance-lab.git
-
Change directories into the inheritance-lab repository.
$ cd inheritance-lab
-
Create a new branch of your repository with this format: [lastName-firstName]
// here's an example $ git branch kim-cho $ git checkout kim-cho
-
Install all dependencies
$ npm install
-
Your goal is create two constructors: Rectangle and Square. Both constructors should have a width and height property. Only one constructor should have a method named "getArea". You must create an implementation of "getArea" for one constructor and then have the other constructor inherit this method.
-
Write your tests in inheritance-lab/test.
-
Write your code in inheritance-lab/code.
-
Push up to your own branch:
$ git push origin HEAD:firstname