Skip to content

Commit 77af21b

Browse files
committed
Describe interface's method headers
1 parent fa5fba8 commit 77af21b

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

spec/06-classes.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -196,7 +196,7 @@ identifier is bound to the instance on which the method was called.
196196
197197
<interface-body> ::= "{" <interface-member>* "}"
198198
199-
<interface-member> ::= <method>
199+
<interface-member> ::= <method-header>
200200
```
201201

202202
Interfaces declare the public part of classes; that is, methods but not field.
@@ -205,5 +205,8 @@ Interface can extend one or more other interfaces. This extension relation must
205205
be acyclic; it is not allowed for an interface to extend itself, directly or
206206
indirectly.
207207

208+
The members declared in an interface are method headers, declaring name and
209+
parameters and return type, but no method body.
210+
208211
## 6.18 The `object` syntax
209212

0 commit comments

Comments
 (0)