Examveda
Examveda

What is the method used to define class methods in Ruby?

A. def self.method_name

B. def class.method_name

C. def method_name.self

D. def method_name.static

Answer: Option A


This Question Belongs to Ruby Programming >> Classes And Objects In Ruby

Join The Discussion

Related Questions on Classes and Objects in Ruby