10 lines
764 B
Text
10 lines
764 B
Text
<span class="hljs-class"><span class="hljs-keyword">protocol</span> <span class="hljs-title">Protocol</span> </span>{
|
|
<span class="hljs-function"><span class="hljs-keyword">func</span> <span class="hljs-title">f1</span><span class="hljs-params">()</span></span>
|
|
<span class="hljs-function"><span class="hljs-keyword">func</span> <span class="hljs-title">f2</span><span class="hljs-params">()</span></span>
|
|
}
|
|
|
|
<span class="hljs-class"><span class="hljs-keyword">class</span> <span class="hljs-title">MyClass</span> </span>{
|
|
<span class="hljs-function"><span class="hljs-keyword">func</span> <span class="hljs-title">f</span><span class="hljs-params">()</span></span> {
|
|
<span class="hljs-keyword">return</span> <span class="hljs-literal">true</span>
|
|
}
|
|
}
|