Instantiating your first object.. 5/21


#1


Instantiating your first object

I seem to be stuck on this question, but as far as I can see, I have done this correctly. However I keep getting asked to declare the variable...

Oops, try again. Did you create a variable called matz?


class Person
    def initialize(name)
        @name = name

matz = Person.new("Yukihiro")

end
end


#2

Put this line after both your end statements,


#3

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.