Design Patterns · Junior · Question 44 of 75
What is refactoring?
- ✓Correct answer: Changing the structure of code without changing its behavior
- 2Adding new functionality to the product for business tasks
- 3Rewriting the project from scratch in another language or framework
Explanation
The goal is to make code clearer and easier to change. It's done in small steps under the protection of tests. If behavior changes, it's no longer refactoring but a functional change.