duplication of code | is a synonym of cloning | |
can be avoided by creating a common superclass if the duplication occurs in two separate classes | |
can be avoided by creating a separate method that has the common code, and calling it from the original location and any other needed locations | |
is a subtopic of Object Oriented Programming Concepts | |
is a kind of practice | |
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 places | |