interface A {
(obj? : any) : any;
func1() : void;
func2() :void;
}
How do I write a class B that would implement A? How would I implement the parametrized constructor?
interface A {
(obj? : any) : any;
func1() : void;
func2() :void;
}
How do I write a class B that would implement A? How would I implement the parametrized constructor?
Copyright © 2021 Jogjafile Inc.
An interface cannot, by definition, contain a constructor. You have to move it in your implemented class :