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