Software engineering has been using interfaces for over 25 years. Java, in contrast to other object-oriented programming languages like C++ and Smalltalk, provides a clean separation between interfaces and classes that implement the interfaces. For new Java developers, this requires some adjustment in thinking. This article shows not only how to distinguish between interfaces and classes, but also how to use them effectively to model and implement Java-based systems. We illustrate the concepts using the implemen-tation of a simple CORBA-based naming service.
Dirk Riehle and Erica Dubach. "Working with Java Interfaces and Classes: How to Separate Interfaces from Implementations." Java Report 4, 7 (July 1999). Page 35pp.
The paper is available as a PDF file.
Copyright (©) 1999 Dirk Riehle, Erica Dubach, and SIGS Publications. All Rights Reserved.