Contracts and Interfaces
Contracts and interfaces are mechanisms that transform Irnix from merely another way to run scripts into a comprehensive, strict, and flexible system.
- A contract is a method for strictly defining a method’s signature.
- An interface is an exact copy of OOP interfaces. It allows you to describe an abstract object with methods and easily swap out the concrete implementation.