Intermediate Ruby
Q63 / 100

What is "monkey patching" in Ruby?

Correct! Well done.

Incorrect.

The correct answer is B) Modifying or extending existing classes (including built-in ones like String or Array) at runtime by reopening them

B

Correct Answer

Modifying or extending existing classes (including built-in ones like String or Array) at runtime by reopening them

Explanation

Because classes can be reopened at any time, developers can add or override methods on existing classes — a powerful but potentially risky technique called monkey patching.

Progress
63/100