Start of Tutorial > Start of Trail > Start of Lesson |
Search
Feedback Form |
An interface defines a protocol of communication between two objects. An interface definition is comprised of a declaration and a body. The section Defining an Interface shows all possible components of an interface declaration. The interface body contains declarations, but no implementations, for a set of methods. An interface might also contain constant definitions. A class that implements an interface must implement all the methods declared in the interface. An interface name can be used anywhere a type can be used.
Start of Tutorial > Start of Trail > Start of Lesson |
Search
Feedback Form |
Copyright 1995-2005 Sun Microsystems, Inc. All rights reserved.