Add to Chrome
✅ The verified answer to this question is available below. Our community-reviewed solutions help you understand the material better.
What is the "Rule of Three" in refactoring?
Code should never be copied more than three times in a project.
Code duplication should be allowed more then three times before refactoring.
Code can be copied once, but when the same code is used three times, it should be extracted into a new method.
Three refactoring steps should be performed for each code duplication.
Get Unlimited Answers To Exam Questions - Install Crowdly Extension Now!