In computer programming, a declaration in a syntactic language construct is the process of specifying identifier properties for its initialization: it declares a word's (identifier's) meaning.
- ↑ For example, Java uses "declaration" (class declaration, method declaration), while Python uses "definition" (class definition, function definition).
- ↑ This distinction is observed in Pascal "units" (modules), and in conventional C and C++ code organization, which has header files consisting largely of pure declarations, and source files consisting of definitions, though this is not always strictly observed, nor enforced by the language.