#5 Instantiating


#1

What is wrong with this code?

class Person
def initialize(name)
@name = name
end

matz=Person.new("Yukihiro")

end

the error asks if I've created the variable "matz"

thank you!


#2

The instantiation should take place outside of the class.

class ...
    def ...
    end
end

matz = Person.new("Yukihiro")

#4