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
Tell me how to find the custom directory in front end?
How can a process be deployed in soa?
pls send me out bound code of supplers,site,bankiformation code pls as soon as
q)what are the validations in sql*loader
List of all the modules under Manufacturing, Finance and Distribution in oracle applications?
In oracle application how do you debug or trace errors?
how to print multi lay outs,muti currency,muti language in xml publisher
What is count(*) from po_vendors(any table)?
WHAT IS CUSTOM VIEW AND CUSTOM COMPONENT?
Tell me how to debug the report?
What is a flexfield? List out its types.
what are the balancing segments in AR?
can we get profile values in report without using user exists is it possible how?
Hi, Anybody please send me the Oracle APPS 1i technical interview questions (Real time) as wel as sample resume also?
Plz anybody send me Technical specification for AP Interface