Is it possible to have a property with an open getter and a secure installer?
I have the following code:
public class Mob extends Sprite {
I had this.health -= dmg; , but I split it to get more detailed information about compiler errors.
I do not understand how a property will be considered read-only in the same class. I also do not understand how this is not available.
If I make the security field, getter and setter protected, it compiles, but this is not the result that I want; I need health to be readable from the outside.
source share