Home / MCQ Bank / Computer
Computer Classes And Objects In Ruby

What is the keyword used to define a class in Ruby?

Select the best option to verify your answer:
Show Correct Answer
Correct Answer: Option A • class

Related Computer Questions

The type of the controlling expression of a switch statement cannot be of the type ______ What will be the output of the following Python code? class A: def test1(self): print(" test of A called ") class B(A): def test(self): print(" test of B called ") class C(A): def test(self): print(" test of C called ") class D(B,C): def test2(self): print(" test of D called ") obj=D() obj.test() When was the first solution to Eight Queen Puzzle published? Which of the following methods can be used to search an element in a linked list? Which of the error is raised when the quantity of data is too much?