Be very careful when applying data conversion logic in a custom setter function. This will appear to users of your API that you are breaking the contract of the property — retrieving the value from the property might not match the actual value last set on that property.
Also note that the initializer value goes directly into the field, bypassing your setter. So, in this snippet, the initializer value is not capitalized.
You can learn more about this in:
Tags: