I've read about static
. I know that it's a prefix that is accessible only by non-objects. But I can't understand why Easter
has to be static
?
class JsonFile
{
public List<Holiday> StandardHolidays = new List<Holiday>();
public List<ChangingHoliday> ChangingHoliday = new List<ChangingHoliday>();
public static Easter Easter = new Easter();
public static DaysToOffset GoodFriday = new DaysToOffset("Good Friday", Easter, -2);
}
I don't get the concept of static
yet. Can someone please explain?