Using attribute slicing to refactor large classes

D. Kirk, M. Roper, N. Walkinshaw

Research output: Chapter in Book/Report/Conference proceedingConference contribution book


It can often be the case in object-oriented programming that classes bloat, particularly if the represent an ill-formed abstraction. A poorly formed class tends to be formed from disjoint sets of methods and attributes. This can result in a loss of cohesion within the class. Slicing attributes can be used to identify and make explicit the relationships between attributes and the methods that refer to them. This can be a useful tool for identifying code smells and ultimately refactoring. Attribute slicing can also be used to examine the relationships between attributes, as is the case in decomposition slicing. This paper introduces attribute slicing in the context of refactoring bloated classes.
Original languageEnglish
Title of host publicationBeyond Program Slicing
EditorsD. W. Binkley, M. Harman, J. Krinke
Number of pages12
Publication statusPublished - 2006


  • attribute slicing
  • large classes
  • object-oriented programming


Dive into the research topics of 'Using attribute slicing to refactor large classes'. Together they form a unique fingerprint.

Cite this