Skip to main content
Journey Uncommon Logo
JourneyUncommon
hardRubythe object model classes are objectsSingle-choice MCQ

Class-level instance variables live on the class object itself. What does a subclass see for an ivar set on the parent class object?

class Reg @items = [] def self.items; @items; end end class SubReg < Reg; end p SubReg.items