Patterns of Interface-Based Programming

被引:12
作者
Steimann, Friedrich [1 ,2 ]
Mayer, Philip [1 ,3 ]
机构
[1] Leibniz Univ Hannover, Hannover, Germany
[2] Fernuniversitat, Programming Syst, Hagen, Germany
[3] Leibniz Univ Hannover, Comp Sci, Hannover, Germany
来源
JOURNAL OF OBJECT TECHNOLOGY | 2005年 / 4卷 / 05期
关键词
D O I
10.5381/jot.2005.4.5.a1
中图分类号
TP31 [计算机软件];
学科分类号
081202 ; 0835 ;
摘要
Modern software architectures heavily promote the use of interfaces. Originally conceived as a means to separate specification from implementation, popular programming languages toady accommodate interfaces as special kinds of types that can be used - in place of classes - in variable declarations. While it is clear that these interfaces offer polymorphism independent of the inheritance hierarchy, little has been said about the systematic use of interfaces, or how they are actually used in practice. By providing a set of basic patterns of interface use together with numbers of their frequency we provide insights that should be of interest not only to the practising programmer, but also to the designers and analysts of large code bases.
引用
收藏
页码:75 / 94
页数:20
相关论文
共 18 条
[1]  
Baumer D, 1997, PLOP 97
[2]  
Coad P., 1999, JAVA DESIGN BUILDING
[3]   Object-oriented application frameworks [J].
Fayad, ME ;
Schmidt, DC .
COMMUNICATIONS OF THE ACM, 1997, 40 (10) :32-38
[4]  
Gamma Erich, 1994, DESIGN PATTERNS ELEM
[5]  
Gossner J, 2004, P SAC 2004, P1310
[6]  
IEEE, 1991, STAND COMP DICT
[7]  
ISO/IEC, 107462 ISOIEC
[8]   ABSTRACTION MECHANISMS IN CLU [J].
LISKOV, B ;
SNYDER, A ;
ATKINSON, R ;
SCHAFFERT, C .
COMMUNICATIONS OF THE ACM, 1977, 20 (08) :564-576
[9]  
Mayer P, 2003, OOPSLA 2003 COMPANIO, P382
[10]  
MEYER B, 1997, OBJECT ORIENTED SOFT