Q. What is the purpose of the Single Responsibility Principle (SRP) in Ruby programming?

  • (A) Each module should be responsible for only one feature
  • (B) Each class should have only one reason to change
  • (C) Each file should contain only one class
  • (D) Each module should be responsible for only one feature
πŸ’¬ Discuss
βœ… Correct Answer: (B) Each class should have only one reason to change

You must be Logged in to update hint/solution

πŸ’¬ Discussion


πŸ“Š Question Analytics

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