Which of the following statements describe the Don't Repeat Yourself, or DRY, principle of object-oriented design?
Options:
- Comments should indicate the relationships between objects
- Programs should be designed before they are written
- Methods within a single class definition should duplicate their logic
-
Code should be designed to be modular and reusable