Treffer: Interfaces with Default Implementations in Java

Title:
Interfaces with Default Implementations in Java
Authors:
Contributors:
The Pennsylvania State University CiteSeerX Archives
Publisher Information:
Press
Publication Year:
2002
Collection:
CiteSeerX
Document Type:
Fachzeitschrift text
File Description:
application/pdf
Language:
English
Rights:
Metadata may be used without restrictions as long as the oai identifier remains attached to it.
Accession Number:
edsbas.CB6A3DA6
Database:
BASE

Weitere Informationen

With the interface construct, Java features a concept with high potential for producing reusable code: Java’s interfaces allow the definition of class properties independently of class inheritance. We propose an extension of Java for providing default implementations in interfaces. Default implementations are useful since they reduce the effort required to implement an interface. They are especially interesting if there is a canonical way to implement methods of the interface in terms of some other methods. In these cases, an implementation can be obtained by implementing the base methods and use the default implementations of the other methods. We discuss the rationale for our design and show that the extension can be implemented both efficiently and conservatively, i.e. without modification of the Java virtual machine.