Which principle in SOLID stands for the concept that an object should only have a single responsibility?

  • I (Interface Segregation Principle)
  • L (Liskov Substitution Principle)
  • O (Open-Closed Principle)
  • S (Single Responsibility Principle)
In SOLID, the "S" stands for the Single Responsibility Principle. This principle emphasizes that an object should have only one reason to change, meaning it should have a single responsibility. This leads to more maintainable and flexible software.
Add your answer
Loading...

Leave a comment

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