Refactoring is a mechanism used in object-oriented programming when working with classes and interfaces. It means that if you have two classes that have similar purposes, and these classes have code in common, it may be better to create one base class out of the common code, then write subclasses from this base class. The subclasses would only have the code that differs between the classes. To refactor classes using interfaces:
Tips
|