a function or method that changes the value of one or more properties of an object in a programming language.
“mutator”词性变化补充纠错
名词
“mutator”用法和例子补充纠错
1. The mutator method allows us to modify the value of the object's private member variable.
2. In object-oriented programming, mutators are commonly used to enforce data encapsulation and control access to an object's properties.