2jomcd / inheritance-lab

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Inheritance Lab

Instructions:

  1. Clone this repository

     $ git clone git@github.com:sf-wdi-14/inheritance-lab.git
    
  2. Change directories into the inheritance-lab repository.

     $ cd inheritance-lab
    
  3. Create a new branch of your repository with this format: [lastName-firstName]

     // here's an example 
     $ git branch kim-cho
     $ git checkout kim-cho
    
  4. Install all dependencies

     $ npm install
    
  5. 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.

  6. Write your tests in inheritance-lab/test.

  7. Write your code in inheritance-lab/code.

  8. Push up to your own branch: $ git push origin HEAD:firstname

About


Languages

Language:JavaScript 100.0%