Type Joins

Type join is an operation to help reduce the necessaity to create new types. It is a way to combine multiple types into a single type. Only interface datatypes can joined together. Resuting in a new type combining the methods of both. When comparing actual values with a type join, the values must have a data type that represents a class that implements all of the interfaces in the type join. A type join is declared using the & operator. Here is an example:


Kudos! Keep reading!