Skip to main content

💻ap computer science a review

Mutator in AP Computer Science A

Verified for the 2027 exam
Verified for the 2027 exam•Fiveable Content Team

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.

This definition is part of Fiveable's AP Computer Science A review, which also has guided practice questions.

"Mutator" also found in: