10. Classes and references
What you will learn
In the previous chapter you saw how a programmer can create custom designs for variables. If a program needs to manipulate musical notes, graphical coordinates, or color values, you can create data structures for these types of data and use those structures in the same way that you do the built-in data types provided by C#.
In this chapter, you will expand on this knowledge and learn how to design classes, which build on the abilities of structures and on the way a program can work with very large and complex data items. You’ll find out how to use properties to manage access to data held inside objects ...
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.