DocumentCode
3232800
Title
Traits: tools and methodology
Author
Black, Andrew P. ; Scharli, Nathanael
Author_Institution
OGI Sch. fo Sci. & Eng., Oregon health & Sci. Univ., USA
fYear
2004
fDate
23-28 May 2004
Firstpage
676
Lastpage
686
Abstract
Traits are an object-oriented programming language construct that allow groups of methods to be named and reused in arbitrary places in an inheritance hierarchy. Classes can use methods from traits as well as defining their own methods and instance variables. Traits thus enable a new style of programming, in which traits rather than classes are the primary unit of reuse. However, the additional sub-structure provided by traits is always optional: a class written using traits can also be viewed as a flat collection of methods, with no change in its semantics. This paper describes the tool that supports these two alternate views of a class, called the traits browser, and the programming methodology that we are starting to develop around the use of traits.
Keywords
inheritance; object-oriented languages; object-oriented programming; inheritance hierarchy; object-oriented programming language; programming methodology; traits browser; Functional programming; Java; Object oriented programming; Programming profession; Protocols; Software engineering;
fLanguage
English
Publisher
ieee
Conference_Titel
Software Engineering, 2004. ICSE 2004. Proceedings. 26th International Conference on
ISSN
0270-5257
Print_ISBN
0-7695-2163-0
Type
conf
DOI
10.1109/ICSE.2004.1317489
Filename
1317489
Link To Document