doi: 10.4304/jsw.8.2.327-336
Qualitative Analysis for the Impact of Accounting for Special Methods in Object- Oriented Class Cohesion Measurement
- Kuwait University/Department of Information Sciences, Kuwait
Abstract
Class cohesion is a key object-oriented softwarequality attribute. It refers to the degree of relatedness ofclass attributes and methods. Several class cohesion metricsare proposed in the literature. However, the impact ofconsidering the special methods (i.e., constructors,destructors, and access and delegation methods) in cohesioncalculation is not thoroughly theoretically studied for mostof the existing cohesion metrics. An incorrect determinationof whether to include or exclude the special methods incohesion measurement can lead to improper refactoringdecisions according to the misleading class cohesion valuesthat are obtained. In this paper, we qualitatively analyze theimpact of including or excluding the special methods incohesion measurement on the values that are obtained byapplying 19 popular class cohesion metrics. The study isbased on analyzing the definitions and formulas that areproposed for the metrics. The results show thatincluding/excluding special methods has a considerableeffect on the cohesion values that are obtained and that thiseffect varies from one metric to another. The study showsthe importance of considering the types of methods thatmust be accounted for when proposing a cohesion metric.
Keywords
- Object-oriented design
- class quality
- c
How to Cite
Jehad Al Dallal, "Qualitative Analysis for the Impact of Accounting for Special Methods in Object- Oriented Class Cohesion Measurement," Journal of Software, vol. 8, no. 2, pp. 327-336, 2013. https://doi.org/ 10.4304/jsw.8.2.327-336
Copyright & License
Copyright © 2013 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).
