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
Does sql use python?
When should I use nosql database?
What is Materialized View? In What Scenario we Use Materialized View?
What is parameter substitution in sql?
What is the difference between joins?
What is the size of partition table?
How many commands are there in sql?
What is sql select statement?
How to move files from one directory to another in pl sql?
What are the types of sql commands?
what are the advantages and disadvantages of cascading style sheets? : Sql dba
What is the difference between Union and Union all. Which is faster.
Is pl sql different from sql?
What is the difference between clustered and non-clustered index in sql?
What is the difference between delete, truncate and drop command?