The OOC Manual

Interfaces

Declaring interfaces

Declare interfaces with the interface keyword:

<p>IDog: interface {
    bark: func
}</p>

Implementing interfaces

<p>Dog: class implements IDog {
    name: String
    race: Race</p>

<pre><code>init: func (=name, =race)
bark: func { "Woof!" println() }
</code></pre>

<p>}</p>