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

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