Skip to content

Commit

Permalink
docs: Mixins can have abstract methods (#5043)
Browse files Browse the repository at this point in the history
  • Loading branch information
KyleFin committed Jul 5, 2023
1 parent 934037d commit c3f9ea5
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/language/methods.md
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ wrapping them with methods, all without changing client code.

Instance, getter, and setter methods can be abstract, defining an
interface but leaving its implementation up to other classes.
Abstract methods can only exist in [abstract classes][].
Abstract methods can only exist in [abstract classes][] or [mixins][].

To make a method abstract, use a semicolon (;) instead of a method body:

Expand All @@ -156,3 +156,4 @@ class EffectiveDoer extends Doer {

[operators]: /language/operators
[abstract classes]: /language/class-modifiers#abstract
[mixins]: /language/mixins

0 comments on commit c3f9ea5

Please sign in to comment.