Like operations on classes, classes inheriting from interfaces or providing remote operations like interfaces are deprecated as of Ice 3.7. Skip this page unless you need to communicate with old applications that rely on this feature.
A Slice class can also be used as a servant in a server, that is, an instance of a class can be used to provide the behavior for an interface, for example:
implements keyword indicates that the class
Clock provides an implementation of the
Time interface. The class can provide data members and operations of its own; in the preceding example, the
Clock class stores the current time that is accessed via the
Time interface. A class can implement several interfaces, for example:
RadioClock implements both
A class, in addition to implementing an interface, can also extend another class:
These definitions result in the following inheritance graph:
A Class using implementation and interface inheritance.
For this definition,
AlarmClock are abstract interfaces, and
RadioAlarmClock are concrete classes. As for Java, a class can implement multiple interfaces, but can extend at most one class.