Oracle Error Message
PLS-00539: subprogram ‘string’ is declared in an object type body and must be defined in the object type specification
Reason for the Error
The specified subprogram is declared in an object type’s body, but is not defined in the object type’s specification. Notice cursor bodies can exist without a specification.
Solution
Define the subprogram in the object type’s specification, or remove the declaration from the body.