If state is a public field (which it is because you defined with `this` then you don't really need this method at all.  Anyone can just overwrite it.