Oracle Error PLS-00538: subprogram or cursor ‘string’ is declared in an object type specification and must be defined in the object type body

Oracle Error Message

PLS-00538: subprogram or cursor ‘string’ is declared in an object type specification and must be defined in the object type body

Reason for the Error

The specified subprogram is declared in an object type’s specification, but is not defined in the object type body.

Solution

Define the subprogram in the object type body, or remove the declaration from the specification.