Title: Traits: a mechanism for fine-grained reuse
Authors: Ducasse, S ×
Nierstrasz, O
Scharli, N
Wuyts, Roel
Black, AP #
Issue Date: Mar-2006
Publisher: Association for Computing Machinery
Series Title: ACM Transactions on Programming Languages and Systems vol:28 issue:2 pages:331-388
Abstract: Inheritance is well-known and accepted as a mechanism for reuse in object-oriented languages. Unfortunately, due to the coarse granularity of inheritance, it may be difficult to decompose an application into an optimal class hierarchy that maximizes software reuse. Existing schemes based on single inheritance, multiple inheritance, or mixins, all pose numerous problems for reuse. To overcome these problems we propose traits, pure units of reuse consisting only of methods. We develop a formal model of traits that establishes how traits can be composed, either to form other traits, or to form classes. We also outline an experimental validation in which we apply traits to refactor a nontrivial application into composable units.
ISSN: 0164-0925
Publication status: published
KU Leuven publication type: IT
Appears in Collections:Informatics Section
× corresponding author
# (joint) last author

Files in This Item:
File Description Status SizeFormat
TOPLASTraits.pdf Published 613KbAdobe PDFView/Open Request a copy

These files are only available to some KU Leuven Association staff members


All items in Lirias are protected by copyright, with all rights reserved.

© Web of science