Initialization

Giving a variable its first value when it is created.

What is Initialization in C#?

Initialization — Giving a variable its first value when it is created.

class Game
{
    void UpdateScore()
    {
        int score = 10;
        score = score + 5;
    }
}

Level: Novice · More C# terms at this level

Updated

In other subjects