Skip to main content
The new Teacher Workspace is here. Your first 3 assignments are free. Try it →

💻ap computer science a review

Mutator in AP Computer Science A

Written by the Fiveable Content Team
Verified for the 2027 exam
Verified for the 2027 exam•Written by the 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.

AP course connection

Topic 3.9: 3.9 This Keyword

Unit 3

"Mutator" also found in: