Q. What is the method used to check if an object is an instance of a particular class in Ruby?

  • (A) instance_of?
  • (B) is_instance?
  • (C) is_a?
  • (D) object_of?
πŸ’¬ Discuss
βœ… Correct Answer: (C) is_a?

You must be Logged in to update hint/solution

πŸ’¬ Discussion


πŸ“Š Question Analytics

πŸ‘οΈ
132
Total Visits
πŸ“½οΈ
2 y ago
Published
πŸŽ–οΈ
Mr. Dubey
Publisher
πŸ“ˆ
96%
Success Rate