๐Ÿ’ปap computer science a review

Set Method (Mutator)

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

A set method, also known as a mutator, is a method in object-oriented programming that allows the modification of an object's attributes or properties. It is used to update the values of instance variables within an object.

"Set Method (Mutator)" also found in: