Understanding interfaces

This is an introduction to interfaces.

Interfaces are a way to achieve polymorphism in Genero BDL.

While user-defined types describe the data structure and storage, interfaces describe the behavior of an object (type), by declaring the list of operations (methods) that can be done on associated types.

The code using a variable declared with as an interface can then act on different typed variables for which these methods exist.