πŸ“Š Ruby
Q. What does the 'self' keyword represent in Ruby?
  • (A) Current class
  • (B) Current method
  • (C) Current object
  • (D) Global variable
πŸ’¬ Discuss
βœ… Correct Answer: (C) Current object

Explanation: 'self' refers to the current object instance.

Explanation by: Rati Dubey
'self' refers to the current object instance.

πŸ’¬ Discussion


πŸ“Š Question Analytics

πŸ‘οΈ
55
Total Visits
πŸ“½οΈ
9 mo ago
Published
πŸŽ–οΈ
Rati Dubey
Publisher
πŸ“ˆ
85%
Success Rate