When you use arrays (Chapter 20) and dictionaries (Chapter 21), you get an easy way to access the items in these collections with a subscript. A subscript is a key that you use to extract a value from a collection. You can add subscript support to your own types.
To add subscript support to the Person class you first coded in Chapter 31, you can write the code in Listing 38-1.