Ruby - Classes and Objects
Which of the following correctly defines a class method named
greet using self in Ruby?greet using self in Ruby?self. inside the class.def self.greet which is the correct syntax. Options B, C, and D are invalid Ruby syntax for class methods.def self.method_name [OK]15+ quiz questions · All difficulty levels · Free
Free Signup - Practice All Questions