Hi, so I'm just playing with some properties and struggling with this concept of Auto-Implemented Properties
Example
protected int health { get; set; }
Where usually I would make a private health and making a public method with a get/set below. I'm unclear how to access the protected get/set via main? Or do I still need to make another method to access / change this protected variable?
Thank you in advance
Example
protected int health { get; set; }
Where usually I would make a private health and making a public method with a get/set below. I'm unclear how to access the protected get/set via main? Or do I still need to make another method to access / change this protected variable?
Thank you in advance