Chapter 13. Interfaces
In this chapter:
Class and Interface Inheritance
More About Calling Interface Methods
Implicit and Explicit Interface Method Implementations (What’s Happening Behind the Scenes)
Generics and Interface Constraints
Implementing Multiple Interfaces That Have the Same Method Name and Signature
Improving Compile-Time Type Safety with Explicit Interface Method Implementations
Be Careful with Explicit Interface Method Implementations
Design: Base Class or Interface?
Many programmers are familiar with the concept of multiple inheritance: the ability to define a class that
is derived from two or more base classes. For example, imagine a class
named TransmitData
, whose function ...
Get CLR via C#, Fourth Edition 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.