Which principle advocates that a class should have only one reason to change?
- Single Responsibility Principle (SRP)
- Open/Closed Principle (OCP)
- Liskov Substitution Principle (LSP)
- Interface Segregation Principle (ISP)
The Single Responsibility Principle (SRP) suggests that a class should have only one reason to change, meaning it should have a single, well-defined responsibility. This principle contributes to code maintainability and flexibility.
Loading...
Related Quiz
- Unit Testing aids in the discovery of _____ in the initial phases of software development.
- How does Build Management contribute to Software Configuration Management?
- How does software re-engineering facilitate the accommodation of new technologies and features?
- What is the significance of including SQA processes throughout the software development life cycle?
- Fill in the blank: "_____ is the quality attribute that relates to the degree to which a system or component can function correctly in the presence of invalid inputs or stressful environmental conditions."