O'Reilly logo

CLR via C#, 3rd Edition by Jeffrey Richter

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Chapter 13. Interfaces

In this chapter:

Class and Interface Inheritance 308

Defining an Interface 308

Inheriting an Interface 310

More About Calling Interface Methods 312

Implicit and Explicit Interface Method Implementations (What's Happening Behind the Scenes) 314

Generic Interfaces 315

Generics and Interface Constraints 318

Implementing Multiple Interfaces That Have the Same Method Name and Signature 319

Improving Compile-Time Type Safety with Explicit Interface Method Implementations 320

Be Careful with Explicit Interface Method Implementations 322

Design: Base Class or Interface? 325

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. ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required