Note:

The listings in this lesson are only snippets that illustrate the concepts described in the text.

The code was not intended to create a project that compiles or runs. We have included the listings here only to save you the effort of retyping snippets for your own projects.