In this section, we will explore how to design and work with interfaces in Julia. Unlike other mainstream programming languages, Julia does not have a formal way to define interfaces. This informality may make some people a little uneasy. Nonetheless, interfaces do exist and are used extensively in many Julia programs.Â
Working with interfaces
Designing and developing interfaces
Interfaces are behavioral contracts. A behavior is defined by a set of functions that operates on one or more specific objects). In Julia, the contract is purely conventional and is not formally specified. To illustrate this concept, let's create a module that contains the logic of taking an object anywhere from the galaxy.
...