interface
In general, a fully abstract class that only defines the public methods that all implementors of the interface must provide. In Java, a type definition that does not provide any implemention. In most single-inheritance languages, a class may implement any number of interfaces even though it can only extend (subclass) one other class.
public interface TimeProvider { /** * Returns an instance of the current time * @return Calendar instance of the current time */ public Calendar getTime() throws TimeProviderEx; } Example TimeProviderInterface embedded from java/com/clrstream/ex7/TimeProvider.java
Copyright © 2003-2008 Gerard Meszaros all rights reserved