Site hosted by Angelfire.com: Build your free website today!
 

Using Interface

You use an interface to define a protocol of behavior that can be implemented by any class. Interfaces are useful for the following:

  • Capturing similarities amoung unrelated classes without artificially forcing a class relationship.

  • Declaring methods that one or more classes are expected to implement.

  • Revealing an object's programming interface with revealing the class.