We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fa5fba8 commit 77af21bCopy full SHA for 77af21b
spec/06-classes.md
@@ -196,7 +196,7 @@ identifier is bound to the instance on which the method was called.
196
197
<interface-body> ::= "{" <interface-member>* "}"
198
199
-<interface-member> ::= <method>
+<interface-member> ::= <method-header>
200
```
201
202
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
205
be acyclic; it is not allowed for an interface to extend itself, directly or
206
indirectly.
207
208
+The members declared in an interface are method headers, declaring name and
209
+parameters and return type, but no method body.
210
+
211
## 6.18 The `object` syntax
212
0 commit comments