
Learning C# by Developing Games with Unity
By :

While we’ve gotten into the habit of pairing the public and private access modifiers with our variable declarations, like we did with player health and items collected, there remains a laundry list of modifier keywords that we haven’t seen. We can’t go into detail about every one of them in this chapter, but the five that we’ll focus on will further your understanding of the C# language and give your programming skills a boost.
This section will cover the first three modifiers in the following list, while the remaining two will be discussed later on in the Intermediate OOP section:
const
readonly
static
abstract
override
You can find a full list of available modifiers at: https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/keywords/modifiers.
Let’s start with the first three access modifiers provided in the preceding list.