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 exception handling is done in advance pl/sql?
what is a trigger in mysql? Define different types of trigger. : Sql dba
What will you get by the cursor attribute sql%notfound?
What is use of term?
Advantages and disadvantages of stored procedure?
How do you declare a constant?
How we can update the view?
how many columns can be used for creating index? : Sql dba
What is audit logout in sql profiler?
How do I view stored procedures?
How does postgresql compare to oracle/db2/ms sql server/informix?
What are tables and fields?
Which is faster union or join?
what does the t-sql command ident_incr does? : Transact sql
What is character functions?