It is difficult for me to guess your intention. On one hand you are indicating that both of those a and b are public (no foremost underscore in their names) so I should theoretically be allowed to obtain/mutate (get/set) each. But then you specify an explicit mutator only for a, https://jmsmanesar.in/