Home > Archive > 2020 > Volume 10 Number 1 (Jan. 2020) >
IJMLC 2020 Vol.10(1): 158-163 ISSN: 2010-3700
DOI: 10.18178/ijmlc.2020.10.1.913

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

Iyad Alazzam, Belal Abuata, and Ghada Mhediat

Abstract—Refactoring is the key to improve software maintainability, reduce complexity and get clear code with the ability to understand and modify it in efficient way. In this paper we present four refactoring techniques which are: Extract Class, Extract Superclass, Encapsulate Field and Pull up Method to discover their effect on multi Object Oriented metrics and factors. The main objective of this study is to help the developers and maintenance engineers in choosing the best possible refactoring technique based on determined goals. The results demonstrate that the types of refactoring techniques have distinctive impact on the metrics values. The results show that all contemplated refactoring techniques increase the Cyclomatic number value (VG). However, the Encapsulate Field has no impact on: Coupling between Objects, Depth of Inheritance, Number of children and Outward Coupling metrics.

Index Terms—Refactoring techniques, encapsulate field, pull up method.

Iyad Alazzam and Ghada Mhediat are with the Dept. of CIS at Yarmouk University, Jordan (e-mail: eyadh@yu.edu.jo, 2017930020@ses.yu.edu.jo).
Belal Aabuata is with the Dept. of MIS at Yarmouk University, Jordan (e-mail: belalabuata@yu.edu.jo).

[PDF]

Cite: Iyad Alazzam, Belal Abuata, and Ghada Mhediat, "Impact of Refactoring on OO Metrics: A Study on the Extract Class, Extract Superclass, Encapsulate Field and Pull up Method," International Journal of Machine Learning and Computing vol. 10, no. 1, pp. 158-163, 2020.

Copyright © 2020 by the authors. This is an open access article distributed under the Creative Commons Attribution License which permits unrestricted use, distribution, and reproduction in any medium, provided the original work is properly cited (CC BY 4.0).

 

General Information

  • E-ISSN: 2972-368X
  • Abbreviated Title: Int. J. Mach. Learn.
  • Frequency: Quaterly
  • DOI: 10.18178/IJML
  • Editor-in-Chief: Dr. Lin Huang
  • Executive Editor:  Ms. Cherry L. Chen
  • Abstracing/Indexing: Inspec (IET), Google Scholar, Crossref, ProQuest, Electronic Journals LibraryCNKI.
  • E-mail: ijml@ejournal.net


Article Metrics in Dimensions