Q: What does the last expression evaluates to?
Answered
quizz 17/36
class A end class B < A def greets "hello fellow rubyist" end end A.new.greets
copy
Ruby 3.3.0
undefined method `greets' for #<A:0x000076832cf154e8> (NoMethodError)
hello fellow rubyist
nil
Yay I will code Ruby today
privacy policy