Intermediate Object-Oriented Programming Concepts
Q47 / 100

What does the "Single Responsibility Principle" (the S in SOLID) state?

Correct! Well done.

Incorrect.

The correct answer is A) A class should have only one reason to change, i.e. one well-defined responsibility

A

Correct Answer

A class should have only one reason to change, i.e. one well-defined responsibility

Explanation

Keeping a class focused on a single responsibility makes it easier to understand, test, and modify without unintended side effects elsewhere.

Progress
47/100