Q: What does the last expression evaluate to ?
Answered
quizz 20/36
class A def initialize(name) @name = name end end a = A.new("max") a.name
copy
Ruby 3.3.0
max
undefined method `name' for an instance of A (NoMethodError)
nil
# Nothing gets printed
privacy policy