A function inside a class (either a method or property) does not have a body and is not marked with the abstract modifier. Functions marked with the abstract modifier must not have a body, while functions with a body must not be marked with the abstract modifier.
To correct this error
-
Mark the function with the abstract modifier.
-
Add a body to the function.