Classes

class square extends shape {
    constructor() {
        super(4);
    }
}

const sq = new square();
// square.sides = 4;

const hex = sq.makeShape(6);
// error: static method isn't inherited