Wednesday, April 04, 2007

What is an interface???!!!???

Apt Definition:
An interface defines a protocol of behavior that can be implemented by any class anywhere in the class hierarchy. An interface defines a set of methods but does not implement them. A class that implements the interface agrees to implement all the methods defined in the interface, thereby agreeing to certain behavior.

Example:
java.util.List,
java.util.Collection

No comments: