A

Admin • 828.03K Points
Coach

Q. What does the 'self' keyword represent in Ruby?

  • (A) Current class
  • (B) Current method
  • (C) Current object
  • (D) Global variable
  • Correct Answer - Option(C)
  • Views: 4
  • Filed under category Ruby
  • Hashtags:

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

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.