what is mean by forward declaration and where we'll use it.
Answer Posted / venkat
A forward declaration looks like the package definition
part but is inside the bode.
e.g.
procedure A is
begin
B;
end A;
procedure B is
begin
null;
end B;
will not work, because during call to B B is still unknown
(1 Step compiler) therefore we need a forward declaration:
procedure B;
procedure A is
begin
B;
end A;
procedure B is
begin
null;
end B;
now we can compile
Is This Answer Correct ? | 30 Yes | 2 No |
Post New Answer View All Answers
How do you get column names only for a table (sql server)?
Can a procedure in a package be overloaded?
How many scalar data types are supported in pl/sql?
What are sql commands?
Explain the the delete statements in sql?
What are properties of the transaction?
What is trigger in sql?
What are the two types of exceptions.
What is the difference between sql and t sql?
What is the plv (pl/vision) package offers?
What is sql procedures and functions?
What does rownum mean in sql?
What is date functions?
What is the difference between database trigger and stored procedure?
Why we use join in sql?