Q. What is the purpose of the initialize method in Ruby classes?

  • (A) To initialize class variables
  • (B) To define instance variables
  • (C) To define class methods
  • (D) To define instance methods
πŸ’¬ Discuss
βœ… Correct Answer: (A) To initialize class variables

You must be Logged in to update hint/solution

πŸ’¬ Discussion


πŸ“Š Question Analytics

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