all types of getter and setter c# code example Example: getter setter c# class Student { public int Age { get; set; } }