variable are like containers that hold or store given values in memory.
In real life we store the location of houses, shops in our minds, name of a person, etc.. variables work also like this we use variables in programming to store the value of different data types.
Variable are essential to store the value.
In C#, there are types of data types like bellow,
Declaration of Variable:
we use these data types to declare variables. Declaration of variable is very important as we define the type of variable in this step. To use variables we need to define their data type first before using them.
Access modifier works as the name implies, it helps to define access range/scope for the variable. public, private, protected are commonly used access modifiers.