class Hello @hello = \"hello\" def display puts @hello end end h = Hello.new h.display
I created the class above. It doesn\'t prin
You need to add an initialize method:
initialize
class Hello def initialize @hello = "hello" end def display puts @hello end end h = Hello.new h.display