Specifications
Sun Services
Java™ Programming Language
Module 7, slide 44 of 44
Copyright 2005 Sun Microsystems, Inc. All Rights Reserved. Sun Services, Revision F
Uses of Interfaces
Interface uses include the following:
• Declaring methods that one or more classes are
expected to implement
• Determining an object’s programming interface
without revealing the actual body of the class
• Capturing similarities between unrelated classes
without forcing a class relationship
• Simulating multiple inheritance by declaring a class
that implements several interfaces










