Instantiating your first object.. 5/21


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 ="Yukihiro")



Put this line after both your end statements,


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