Home / MCQ Bank / Computer
Computer Modules And Mixins In Ruby

What does the attr_accessor method do in Ruby classes?

Select the best option to verify your answer:
Show Correct Answer
Correct Answer: Option D • Defines both reader and writer methods for class attributes

Related Computer Questions

What is the name given to the weapons which use computerised guidance system? Which of the error is raised when the quantity of data is too much? A page fault occurs when In order to tell Excel that we are entering a formula in cell, we must begin with an operator such as Choose the correct tag for largest heading in HTML.