Article ID | Journal | Published Year | Pages | File Type |
---|---|---|---|---|
462016 | Journal of Systems and Software | 2010 | 14 Pages |
Abstract
Polymorphism is one of the most important features offered by object-oriented programming languages, since it allows to extend/modify the behavior of a class without altering its source code, in accordance to the Open/Closed Principle. However, there is a lack of methods and tools for the identification of places in the code of an existing system that could benefit from the employment of polymorphism. In this paper we propose a technique that extracts refactoring suggestions introducing polymorphism. The approach ensures the behavior preservation of the code and the applicability of the refactoring suggestions based on the examination of a set of preconditions.
Related Topics
Physical Sciences and Engineering
Computer Science
Computer Networks and Communications
Authors
Nikolaos Tsantalis, Alexander Chatzigeorgiou,