既定の実装 (Default Implementation)

言語仕様
技法・仕組み・アルゴリズム
プロトコル・抽象型
技術用語
Empty
Empty
2024/01/10 10:52
Empty
Empty
Empty
Empty
Empty
Empty
9 more properties

Default Implementation

Swift で プロトコル拡張 を使って、プロトコルに対して実装を備える手法です。
extension SomeProtocol { func someImplemantation() { // Some Implementations ... } }