Constant
A named value intended not to change after initialization.
What is Constant in C#?
Constant — A named value intended not to change after initialization.
class Store
{
static int locationCount = 3;
const int maxItems = 100;
readonly string name;
Store(string name)
{
this.name = name;
}
}
Level: Apprentice · More C# terms at this level
Updated