The Interface-ID paragraph indicates that this Identification Division is introducing an interface definition, specifies the
name that identifies the interface and assigns interface attributes to the interface.
General Format
Directives
- In addition to the Compiler directives which provide flagging and modify the reserved word list, the following directives
may impact either the syntax or the semantics described in this section.
- ACTUAL-PARAMS - specifies the parameters to be used in the creation of an interface from a parameterized class or interface
Syntax Rules
- Literal-1 must be an alphanumeric literal and must not be a figurative constant.
- Type-specifier must not inherit directly or indirectly from interface-name-1.
- Type-specifier cannot be repeated when you compile a program for .NET. In other words, multiple inheritance is not allowed.
- Parameter-name-1 must be a name specified in a class-specifier or an interface-specifier in the Repository paragraph of this
interface definition.
- If a given method-name is inherited from more than one interface, the method prototype in each inherited interface must be
such that this interface conforms to all inherited interfaces.
- Attribute-clause is defined in the topic on the
Attribute,
Custom-Attribute Clause.
General Rules
- Interface-name-1 names the interface declared by this interface definition. However, literal-1, if specified, is the name
of the interface that is externalized to the operating environment.
- The INHERITS phrase specifies the name of the interface that is inherited by interface-name-1 as described in the topic
Interface Inheritance in the chapter
Language Fundamentals.
- The USING phrase specifies that this is a parameterized interface. Parameter-name-1 is the name given to the formal parameter.
- Parameter-name-1 must be specified within this interface definition only where a class-name or an interface-name is permitted.