Which of the following statements describe the Single Responsibility Principle of the SOLID object-oriented design approach?

All QuestionsCategory: Cpp LanguageWhich of the following statements describe the Single Responsibility Principle of the SOLID object-oriented design approach?
Anonymous asked 3 years ago

Options:

  1. Objects should have a singular purpose
  2. Generally, a class wouldn’t make calls to external methods
  3. A class should only have one reason to change
  4. Class definitions are longer and more modular

1 Answers
Best Answer
Anonymous answered 3 years ago

The correct answers are:

  1. Objects should have a singular purpose
  2. Generally, a class wouldn’t make calls to external methods
  3. A class should only have one reason to change