Lecture
These smells lead to the fact that if necessary, to change something in one place of the program, you have to make many changes in other places. This seriously complicates and increases the cost of program development.
Divergent modifications
When you make changes to a class, you have to change a large number of different methods. For example, to add a new type of product you need to change the methods of searching, displaying and ordering goods.
Shot Shot
When making any modifications, you have to make many small changes to a large number of classes.
Parallel inheritance hierarchies
Whenever you create a subclass of a class, you have to create another subclass for another class.
Comments
To leave a comment
Refactoring theory
Terms: Refactoring theory