Which principle in software engineering states that a class should have only one reason to change?
-
A
Open-Closed Principle
-
B
Single Responsibility Principle
Correct answer
-
C
Liskov Substitution Principle
-
D
Interface Segregation Principle
Correct answer
B. Single Responsibility Principle
16 views
Explanation
The Single Responsibility Principle is the first principle of SOLID design principles.
Doubts & discussion
Not sure why the answer is B? Ask here and get an explanation.
Ask a doubt about this MCQ