class Func { constructor(a, b) { this.a = a this.b = b } getSum() { return this.a + this.b } } let x = new Func(3, 4)