1.

What Is Forward Declaration And How Can It Be Achieved Within A Package?

Answer»

PL/SQL does not allow the use of any subprogram before it is DECLARED and defined. However, in a package, forward declaration is allowed in case the subprogram specification is terminated by a semi-colon. This enables the subprogram to be defined in a logical manner and groups the subprograms in a package. It also helps in defining MUTUALLY recursive PROGRAMS that call each other directly or indirectly.

PL/SQL does not allow the use of any subprogram before it is declared and defined. However, in a package, forward declaration is allowed in case the subprogram specification is terminated by a semi-colon. This enables the subprogram to be defined in a logical manner and groups the subprograms in a package. It also helps in defining mutually recursive programs that call each other directly or indirectly.



Discussion

No Comment Found