πŸ“Š Ruby
Q. How do you define a constructor in Ruby?
  • (A) def initialize
  • (B) def constructor
  • (C) def init
  • (D) def constructor()
πŸ’¬ Discuss
βœ… Correct Answer: (A) def initialize

You must be Logged in to update hint/solution

πŸ’¬ Discussion


πŸ“Š Question Analytics

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