mutator
A method whose job is to assign one field, such as setName.
A mutator (setter) assigns a field from an argument; it must apply the same validation as the constructor or it bypasses the class invariant.
See also
A method whose job is to assign one field, such as setName.
A mutator (setter) assigns a field from an argument; it must apply the same validation as the constructor or it bypasses the class invariant.
See also