Written by the Fiveable Content Team • Last updated August 2025
Verified for the 2026 exam
Verified for the 2026 exam•Written by the Fiveable Content Team • Last updated August 2025
Definition
A mutator, also known as a setter method, is a method in a class that modifies the value of an instance variable. It allows us to change the state of an object after it has been created.