πŸ“Š Ruby
Q. What is the significance of the initialize method in Ruby classes?
  • (A) It defines class variables
  • (B) It defines class methods
  • (C) It is automatically called when a new object is created and allows initialization of instance variables
  • (D) It defines instance methods
πŸ’¬ Discuss
βœ… Correct Answer: (C) It is automatically called when a new object is created and allows initialization of instance variables

You must be Logged in to update hint/solution

πŸ’¬ Discussion


πŸ“Š Question Analytics

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