Summary
In this chapter, you learned about making your own types using OOP. You learned about some of the different categories of members that a type can have, including fields to store data and methods to perform actions, and you used OOP concepts, such as aggregation and encapsulation. You saw examples of how to use modern C# features like relational and property pattern matching enhancements, init-only properties, and records.
In the next chapter, you will take these concepts further by defining delegates and events, implementing interfaces, and inheriting from existing classes.