Vidyalelo
Ruby Programming · Q4

Advanced Topics in Ruby

Programming · Ruby Programming · question 4

Q4

What is a singleton class in Ruby?

A.
A class that can have only one method
B.
A class that is used to define methods for a single object
Answer
C.
A class that can have only one subclass
D.
None of the above

Answer: Option B

Solution

Answer: Option B
No explanation is given for this question Let's Discuss on Board