What is FORWARD DECLARATION in Packages?
Answer Posted / kiran kumar
PL/SQL allows for a special subprogram declaration called a
forward declaration. It consists of the subprogram
specification in the package body terminated by a semicolon.
You can use forward declarations to do the following:
? Define subprograms in logical or alphabetical order.
? Define mutually recursive subprograms.(both calling each
other).
? Group subprograms in a package
Example of forward 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 ? | 41 Yes | 3 No |
Post New Answer View All Answers
Is soa a part of oracle fusion middleware?
List the various types of value set.
Can we create tables in apps schema?
What are the Standard Reports and Forms in HRMS?
Do you know what is applysys in oracle application database schema, what is apps?
what is global tempory table?
What is a flexfield? List out its types.
What are the different components of soa suite?
Can you define an erp system?
is it possible to run the interface without using oracle apps?
what is pay run id ?
If we have a repeated record in a table. But the repeated record how i can transfer from table to nested table?
A program must be written which accepts date parameter. The date parameter will accept data in the format DD/MM/YYYY. This data has to be validated and post validation, the following details have to be displayed for this date parameter 1. Input date must be defaulted to sysdate, It can be overridden by any other date. 2. Financial year should be displayed for this date parameter. Eg: If the input date is 30/11/2010, the financial year must be displayed as 1. From Date : 01-Aprr-2010 To Date: 31-Mar-2011 3. Calendar year and Calendar month must also be displayed. 4. The next payment cycle (say for EB), must be displayed based on this date parameter. 5. The previous payment must also be displayed based on this date.
Explain what are the tables of auto invoice?
tell me the scenarios of the independent in reports