class Inheritance extends Func { constructor(a, b, c) { super(a, b) this.c = c } getProduct() { return this.a * this.b * this.c } } let y = new Inheritance(3, 4, 5)