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 to calculate expressions with sql statements? : Sql dba
What is rename in sql?
How do you concatenate in sql?
what are all the different normalizations? : Sql dba
What is normalisation and its types?
What are the disadvantages of not performing database normalization?
Why cannot I use bind variables in ddl/scl statements in dynamic sql?
What is the sql case statement?
how to enter binary numbers in sql statements? : Sql dba
what is cursor. write example of it. What are the attributes of cursor.
Does truncate free space?
what are the differences among rownum, rank and dense_rank? : Sql dba
How would you reference column values before and after you have inserted and deleted triggers?
Can we use threading in pl/sql?
What are different types of triggers?