Abstract

Impact of Refactoring on OO Metrics: A Study on the Extract Class, Extract Superclass, Encapsulate Field and Pull up Method

Highlights

  • With the enormous measure of improvement, in software, the code becomes more multifaceted, hard to comprehend and hard to maintain

  • In this paper we evaluated the effect of refactoring methods (Extract Class, Extract Superclass, Encapsulate Field and Pullup Method) on Polymorphism Factor, Method inheritance factor, Number of children, Coupling between objects, Depth of inheritance tree, Directly called components, Cyclomatic number, Number of nested levels, Response for a class, Number of children and Outward coupling This paper is organized as follows

  • The results prove that cyclomatic number, number of statement, average size of statement, coupling between object, lack of cohesion, number of children, direct called components and outward coupling (EFFCoupling) metrics increased while Weighted Method per class, Method Inheritance factor, Number of Nested Levels and Depth of Inheritance metrics decreased

Read more

Summary

Introduction

With the enormous measure of improvement, in software, the code becomes more multifaceted, hard to comprehend and hard to maintain. One of the methods that can influence the software is refactoring. The primary thought is to reallocate code components, for example, classes, techniques and others crosswise over class hierarchy to encourage alteration and expansion [1]. Software development tends to use refactoring in order to improve software quality which causes improving understandability, maintainability, flexibility and reusability. There are some risks associated with using refactoring for example, it might create bugs that are hard to tackle or perhaps firm design will be excessively expensive, making it impossible to modify. Refactoring is as yet extraordinary compared to other techniques to deal with numerous issues confronting the programmers

Objectives
Results
Conclusion
Full Text
Published version (Free)

Talk to us

Join us for a 30 min session where you can share your feedback and ask us any queries you have

Schedule a call