For example, the following code would return an array with the five values that have been entered.
So, what makes a data structure complicated? For one, it’s a data structure that has a name, a value, and a method. But it can also mean that it’s a data structure that can hold many different kinds of data—in this case it can hold two different kinds of data. A data structure with many data types is called a class.