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
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment