A function body is associated with a method or property, but the method or property is marked with the abstract modifier or is in an interface.
To correct this error
-
Remove the function body.
-
Change the modifiers.
-
Use a class instead of an interface.
See Also
Reference
class Statementinterface Statement