Examveda

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

A. def method_name

B. def self.method_name

C. def class.method_name

D. def method_name.self

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