___________ is a design principle in OOP that states a class should have only one reason to change.

  • Encapsulation
  • Inheritance
  • Polymorphism
  • Single Responsibility Principle
The correct option is Single Responsibility Principle. This principle suggests that a class should have only one job or reason to change, leading to more modular, maintainable, and understandable code.
Add your answer
Loading...

Leave a comment

Your email address will not be published. Required fields are marked *