The difference between Declaration and Forward declaration
When used as nouns, declaration means a written or oral indication of a fact, opinion, or belief, whereas forward declaration means the declaration of an identifier before it is given a complete definition, so that the compiler can know its data type and memory size.
check bellow for the other definitions of Declaration and Forward declaration
-
Declaration as a noun:
A written or oral indication of a fact, opinion, or belief.
-
Declaration as a noun:
A list of items for various legal purposes, e.g. customs declaration.
-
Declaration as a noun:
The act or process of declaring.
-
Declaration as a noun (cricket):
The act, by the captain of a batting side, of declaring an innings closed.
-
Declaration as a noun (legal):
In common law, the formal document specifying plaintiff's cause of action, including the facts necessary to sustain a proper cause of action, and to advise the defendant of the grounds upon which he is being sued.
-
Declaration as a noun (computing):
The specification of an object, such as a variable or function, establishing its existence but not necessarily describing its contents.
-
Forward declaration as a noun (programming):
The declaration of an identifier before it is given a complete definition, so that the compiler can know its data type and memory size.