Examveda

Which of the following is used to define a class method in Ruby?

A. def self.method_name

B. method method_name

C. class method_name

D. def method_name

Answer: Option A


This Question Belongs to Ruby Programming >> Methods In Ruby

Join The Discussion

Related Questions on Methods in Ruby