💻ap computer science a review

Mutator Methods (Setters)

Written by the Fiveable Content Team • Last updated August 2025
Verified for the 2026 exam
Verified for the 2026 examWritten by the Fiveable Content Team • Last updated August 2025

Definition

Mutator methods, also known as setters, are methods in object-oriented programming that allow the modification of an object's attributes or properties. They provide a way to update the values of private instance variables within a class.

"Mutator Methods (Setters)" also found in:

2,589 studying →