Q. Which method is used to define class variables in Ruby?

  • (A) @@variable
  • (B) @variable
  • (C) $variable
  • (D) variable
πŸ’¬ Discuss
βœ… Correct Answer: (A) @@variable

You must be Logged in to update hint/solution

πŸ’¬ Discussion


πŸ“Š Question Analytics

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