Chapter 2, “Data Types and Structures,” discussed built-in types, including containers. In this chapter, we move to study how to create user-defined types.
Type versus Structure
Let’s clarify these two terms in the Julia language context.
A type of an object, in plain English, refers to the set of characteristics that describe the object. For example, an object of type sheet can be described with its dimensions, its weight, its size, or its colour.
All values in Julia are true objects belonging ...