Q: What values are returned by the two last expressions ?
Answered
quizz 23/36
class A @var = "hello" def print_var @var end def self.print_var @var end end A.new.print_var A.print_var
copy
Ruby 3.3.0
nil hello
hello nil
hello hello
nil nil
privacy policy