Skip to content

Commit

Permalink
Implement the Car class that inherits from Vehicle.
Browse files Browse the repository at this point in the history
  • Loading branch information
Mike Geyser committed May 30, 2014
1 parent fa786b9 commit cdc8de1
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions vehicles2.js
Expand Up @@ -9,4 +9,17 @@
{
return "Vroooom!";
}
}

class Car extends Vehicle
{
constructor()
{
super("car");
}

drive()
{
return "Nyeeeeeow!";
}
}

0 comments on commit cdc8de1

Please sign in to comment.