Severity Code Description Project File Line Suppression State Error CS0120 An object reference is required for the non-static field, method, or property 'MainClass.func(string)' code example

Example: c# error CS0120

error CS0120: An object reference is required to access
		non-static field, method, or property 'Forest.Grow()'

/*		This usually means you tried to reference a non-static 
		member from a class, instead of from an instance			*/
          

        Forest f = new Forest("Congo", "Tropical");

        Forest.Grow(); //Causes error
		f.Grow(); //Fixes error