Content deleted Content added
No edit summary |
|||
Line 282:
Some languages provide specific means to mitigate this:
* [[C Sharp (programming language)|C#]] provides default interface methods since 8.0 version which allows to define body to interface member.
* [[D (programming language)|D]] provides an explicit "alias this" declaration within a type can forward into it every method and member of another contained type.
* [[Dart (programming language)|Dart]] provides mixins with default implementations that can be shared.
* [[Go (programming language)|Go]] type embedding avoids the need for forwarding methods.<ref>{{cite web | url=https://golang.org/doc/effective_go.html#embedding | title=''(Type)'' Embedding | website=The Go Programming Language Documentation | access-date=2019-05-10}}</ref>
|