CS Electrical And Electronics
@cselectricalandelectronics

Which of the following statements describe the Don't Repeat Yourself, or DRY, principle of object-oriented design?

All QuestionsCategory: Cpp LanguageWhich of the following statements describe the Don't Repeat Yourself, or DRY, principle of object-oriented design?
Anonymous asked 3 years ago

Options:

  1. Comments should indicate the relationships between objects
  2. Programs should be designed before they are written
  3. Methods within a single class definition should duplicate their logic
  4. Code should be designed to be modular and reusable

1 Answers
Anonymous answered 3 years ago

The correct answers are:

  1. Programs should be designed before they are written
  2. Code should be designed to be modular and reusable