Beginner Ruby
Q38 / 100

What does ".freeze" do to an object?

Correct! Well done.

Incorrect.

The correct answer is B) Prevents further modifications to the object

B

Correct Answer

Prevents further modifications to the object

Explanation

freeze makes an object immutable; attempting to modify a frozen object raises a FrozenError.

Progress
38/100