Open kashanzaheerkhan-cyber opened 8 months ago
Multiple constructor implementations are not allowed.
class MyClass { a: number b: number
constructor() {}
constructor(a, b) { this.a = a this.b = b } Sum = (a, b) => { const c = 10 return a + b + c } }
Please provide other information which led to this error, and any specific questions you have about it:
Error Text
Multiple constructor implementations are not allowed.
Supporting Information
class MyClass { a: number b: number
constructor() {}
constructor(a, b) { this.a = a this.b = b } Sum = (a, b) => { const c = 10 return a + b + c } }
Please provide other information which led to this error, and any specific questions you have about it: