Java   View all facts   Glossary   Help
practice > duplication of code
Next practiceprivacy    Uppractice    Previous practicereuse   

duplication of code
(cloning)
subjectfact 
duplication of codeis a synonym of cloning2001-10-19 11:36:27.0
can be avoided by creating a common superclass if the duplication occurs in two separate classessource: Object Oriented Software Engineering by Lethbridge and Laganière, 2001-10-19 11:36:39.0
can be avoided by creating a separate method that has the common code, and calling it from the original location and any other needed locationssource: Object Oriented Software Engineering by Lethbridge and Laganière, 2001-10-19 11:36:39.0
is a subtopic of Object Oriented Programming Concepts2001-10-19 11:36:39.0
is a kind of practice2001-10-19 11:36:39.0
should be avoided 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 placessource: Object Oriented Software Engineering by Lethbridge and Laganière, 2001-10-19 11:36:39.0