Skip to content

Instantly share code, notes, and snippets.

@thiagocaiubi
Created March 17, 2016 18:53
Show Gist options
  • Save thiagocaiubi/974f7cb7e760c639a829 to your computer and use it in GitHub Desktop.
Save thiagocaiubi/974f7cb7e760c639a829 to your computer and use it in GitHub Desktop.
'use strict';
const Car = function() {};
Car.prototype.move = function() {
console.log('moving');
};
class Fusca extends Car {
move() {
super.move();
console.log('fusca moving');
}
stop() {
console.log('stopping');
}
}
let f = new Fusca();
f.move();
f.stop();
@guax
Copy link

guax commented Mar 17, 2016

Much code, very success.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment