+ 1
Get and Set are used when you define a property.
Get can check input
Set can fotmat output
It makes sure you have encapsulation for the class you are creating. So you do not need to share the inside of the class with the outside world. And you can validate the input, before processing it.
www.geeksforgeeks.org/c-sharp-encapsulation/amp/



