Mutator (setter) method: A method that modifies the value of a private instance variable.
How to apply it: Write setters following the pattern: public void setField(Type value) { field = value; }.
Course: AP Computer Science A · Unit: Writing Classes
Practice questions about Mutator (setter) method on AimFive — get rubric-based feedback showing exactly which points you earned.
AP and Advanced Placement are trademarks of College Board. AimFive is not affiliated with or endorsed by College Board.