Safari Books Online is a digital library providing on-demand subscription access to thousands of learning resources.
The syntax for defining an interface is almost identical to that for defining classes, but with two differences:
• An interface can contain only member definitions, not implementation. Essentially, an interface defines something a class (or other interface) can do, but leaves the doing of it up to the class itself.
• Interfaces cannot define fields, constructors, destructors or other types.