Java View all facts Glossary Help |
practice > duplication of code |
duplication of code comparison table |
Subject | avoid | avoid by | is a kind of | is a subtopic of | is a synonym of |
---|---|---|---|---|---|
practice | kbTop | ||||
duplication of code | because it increases the total volume of code and means that if you change the code in one place, then you might forget to change the code in the other places | creating a separate method that has the common code, and calling it from the original location and any other needed locations | practice | Object Oriented Programming Concepts | cloning |
Next practice: privacy Up: practice Previous practice: reuse