In this case, the C# compiler generates the necessary methods under the hood, as well as a private field, _age .” “To create a property, use the same syntax as for fields, but add a get; to generate a getter and a set; to generate a setter . Then use the property the same as you do a field.”