Go to the first, previous, next, last section, table of contents.


2.2 Interfaces

A function's interface consists of the function's name, its return type, the number and types of its arguments, and the types of exceptions it may throw. A Larch/C++ specification of a function can only be implemented by a C++ function, because the interface specified includes the C++ calling sequence, the way that function affects the C++ type checker, and so on. The concept of a behavioral interface specification language is discussed further in [Guttag-Horning-Wing85b] [Wing87] and [Lamport89]. (Also see section 1.1 Larch-style Specifications.)

In C++ a class has three interfaces (see Section 9.1c of [Ellis-Stroustrup90]).


Go to the first, previous, next, last section, table of contents.