Please enable JavaScript to use CodeHS

Chapter 5

Writing Classes

5.5 Mutator Methods

Mutator Methods

Creating Mutator Methods

SuperHero Class with Mutator Methods

Student Setters

Check Your Understanding

  1. Incorrect Correct No Answer was selected Invalid Answer

Exercise: Rectangle class

Vocabulary

Term Definition
Mutator Method A method that enables user to change the value of an object’s instance and static variables.