A protective mutator protects fields by being the only way to set a value to a field, it can check the parameter for validity and throw an error if it is incorrect.
A protective mutator protects fields by being the only way to set a value to a field, it can check the parameter for validity and throw an error if it is incorrect.