Skip to end of metadata
Go to start of metadata

Interfaces are introduced thru the interface keyword:

Interface methods don't need to have a body:

But if they do it must be empty:

If a method in a interface does not declare a return type it is assumed to be void since there's no body with a return statement where to infer the type from. Thus the above interface declaration is equivalent to the following one:

Interfaces can extend other interfaces:

Interfaces can be partial:

  • No labels