The Sequence: From Data to the Data Structure

Gábor Guta · Apress eBooks · 2022

Some data types have been described so far such as numbers, Boolean values, and strings. In addition, you learned how to define your own types, i.e., classes. In the case of the Order class, you might realize that allowing it to reference more than one product (or an arbitrary number of products) in the model would be useful. To make this possible, you need a notation to reference the objects with an index number or other identifiers. Such classes or types able to reference a variable number of objects—based on some structural property—are called data structures .

Read the paper · More papers on PaperTik