getter setter variable c# with value code example Example: getter setter c# class Student { public int Age { get; set; } }