Skip to main content
Journey Uncommon Logo
JourneyUncommon
hardRubyinclude prepend extend on the chainSingle-choice MCQ

A module M is included into class C. AFTER the include, new methods are defined on M by reopening it. Can existing instances of C call those later-added methods?

module M; end class C; include M; end module M def late; "late"; end end c = C.new # created after, but method added after include p c.late