9. Creating structured data types

Image

What you will learn

Programs can work with many different types of data, including integers, floating-point numbers, and strings of text. They can also create arrays of a particular data type. However, the data that programs need to work with is often more complex than single values. In this chapter, you’ll learn how to build structured data types that can bring together a number of related items into a single variable. Knowing how to do this lets you design data storage that matches the specific needs of an application.

Storing music notes by using a structure

Objects and responsibilities: Making a SongNote ...

Get Begin to Code with C# now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.