Current Proceedings on Technology
Yazarlar: Jehad Al Dallal
Konular:-
Anahtar Kelimeler:Object-oriented class,Software quality,Class cohesion metric,Class coupling metric
Özet: Classes are the basic units in object-oriented programs, and their quality affects the overall quality of the software. Class cohesion and coupling are two important internal quality attributes. Class cohesion refers to the degree of relatedness of the class attributes and methods, whereas class coupling refers to the degree to which a class is related to other classes. Classes of high quality are expected to feature high cohesion and low coupling values. In this paper, using classes of three open-source Java systems, we empirically explore the relation between class cohesion and coupling. Five lack-of-cohesion metrics and eight coupling metrics are considered in the empirical study. The empirical study results show that class cohesion and coupling internal quality attributes are inversely correlated. The strength of the correlation depends highly on the cohesion and coupling measurement approaches.