What is FORWARD DECLARATION in Packages?
Answer Posted / palaniraman balasubramanian
Special sub program unit declaration called forward
declaration, Consider below the example
In this pacakage, the first program unit is calling the
calc_rating but calc_rating is defined last in the package;
if we are not declared the fwd declaration then it will
raise the error While compiling this package. Package
compilation always happens top to bottom. For resolving
this compilation issue, you should declare the fwd
declaration.
CREATE OR REPLACE PACKAGE BODY forward_pack
IS
PROCEDURE calc_rating(. . .); -- forward
declaration
PROCEDURE award_bonus(. . .)
IS -- subprograms
defined
BEGIN -- in alphabetical
order
calc_rating(. . .);
. . .
END;
PROCEDURE calc_rating(. . .)
IS
BEGIN
. . .
END;
END forward_pack;
| Is This Answer Correct ? | 21 Yes | 4 No |
Post New Answer View All Answers
how do you describe O2C along with tables
what are the prerequisites for costing transactions?
CAN YOU CUSTOMISE THE COUTOMISE CUS_TOP
Can u give the Documentation of Custom.pll in oracle apps
What does appl_top directory contain?
Are you familiar with internet architecture of oracle apps 11i?
List the various types of value set.
Do you know where we can check the status of po?
What is sca and how is it useful?
In oracle application how do you debug or trace errors?
what is the difference between request group and request security in oracle apps?
List the types of flexfield?
In sequence i want to 11 and 15th values how we will write?
What are the benefits of using soa architecture?
testing tools?