๐Ÿ’ปap computer science a review

Mutator Methods (Setters)

Written by the Fiveable Content Team โ€ข Last updated September 2025
Verified for the 2026 exam
Verified for the 2026 examโ€ขWritten by the Fiveable Content Team โ€ข Last updated September 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: