Complete the code to identify the SOLID principle that states a class should have only one reason to change.
The [1] principle means a class should have only one reason to change.
The Single Responsibility Principle (SRP) states that a class should have only one reason to change, meaning it should have only one job or responsibility.
Complete the sentence to describe the Open/Closed principle.
The Open/Closed principle means software entities should be open for [1] but closed for [2].
The Open/Closed principle states that software entities should be open for extension but closed for modification, allowing behavior to be added without changing existing code.
Fix the error in the description of the Liskov Substitution principle.
The Liskov Substitution principle means that objects of a superclass should be replaceable with objects of a [1] without affecting the correctness of the program.
The Liskov Substitution principle states that objects of a superclass should be replaceable with objects of a subclass without breaking the program.
Fill both blanks to complete the Dependency Inversion principle statement.
High-level modules should not depend on [1] modules. Both should depend on [2].
The Dependency Inversion principle says that high-level modules should not depend on low-level modules. Instead, both should depend on abstractions to reduce coupling.
Fill all three blanks to complete the statement about the Interface Segregation principle.
Clients should not be forced to depend on interfaces they do not [1]. Instead, many client-specific [2] are better than one general [3].
The Interface Segregation principle states that clients should not be forced to implement interfaces they do not use. It is better to have many client-specific interfaces than one general interface.