Declaration
noun
say it: “dek-luh-RAY-shun” /ˌdɛkləˈreɪʃən/
A statement that introduces a new name, such as a variable with its type.
What is Declaration in C#?
Declaration — A statement that introduces a variable, method, class, or other named item.
class Game
{
void UpdateScore()
{
int score = 10;
score = score + 5;
}
}
In a sentence
- “The declaration int score; tells C# that score holds whole numbers.”
Level: Novice · More C# terms at this level
Updated