Further reading
- Interfaces are a great way to create groups of related functionality (with or without default implementations) that can be adopted by any class or struct. These are especially handy when you want a class to inherit from multiple groups of functionalities, which is called object composition. For more information, check out the documentation at https://learn.microsoft.com/en-us/dotnet/csharp/fundamentals/types/interfaces.
Get
andSet
properties give you access to a code block when a property is read or set, respectively. This allows you to add extra instructions before and after you get or set property values, much like a method. You can find more information at https://learn.microsoft.com/en-us/dotnet/csharp/programming-guide/classes-and-structs/using-properties.
Leave a review!
Enjoying this book? Help readers like you by leaving an Amazon review. Scan the QR code below to get a free eBook of your choice.