Declaration

A statement that introduces a variable, method, class, or other named item.

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;
    }
}

Level: Novice · More C# terms at this level

Updated

In other subjects