"use strict";

class Foo {
    method (name) {
        console.log("Foo: ", name);
    }
    method2 (name) {
        console.log("Foo: ", name);
    }
}

class Bar extends Foo {
    method (name) {
        console.log("Bar: ", name);
    }
}

var b = new Bar();
b.method("test");
b.method2("test");

"use strict";

class Foo {
    method (name) {
        console.log("Foo: ", name);
    }
    method2 (name) {
        console.log("Foo: ", name);
    }
}

class Bar extends Foo {
    constructor () {
        super();
    }
    method (name) {
        console.log("Bar: ", name);
    }
}

var b = new Bar();
b.method("test");
b.method2("test");

Call the base class constructor
Call the base class constructor
