Local Variable
A variable declared inside a method or block and usable only there.
What is Local Variable in C#?
Local Variable — A variable declared inside a method or block and usable only there.
class Game
{
void UpdateScore()
{
int score = 10;
score = score + 5;
}
}
Level: Apprentice · More C# terms at this level
Updated