Working with Interfaces

  • Andrew Troelsen
  • Philip Japikse

Abstract

This chapter builds upon your current understanding of object-oriented development by examining the topic of interface-based programming. Here you’ll learn how to define and implement interfaces and come to understand the benefits of building types that support multiple behaviors. Along the way, you will also examine a number of related topics, such as obtaining interface references, explicit interface implementation, and the construction of interface hierarchies. You’ll also examine a number of standard interfaces defined within the .NET base class libraries. As you will see, your custom classes and structures are free to implement these predefined interfaces to support a number of useful behaviors, such as object cloning, object enumeration, and object sorting.

Keywords

Reference Type Interface Type Object User Static Void Public Class 
These keywords were added by machine and not by the authors. This process is experimental and the keywords may be updated as the learning algorithm improves.

Copyright information

© Andrew Troelsen and Philip Japikse 2015

Authors and Affiliations

  • Andrew Troelsen
    • 1
  • Philip Japikse
    • 1
  1. 1.MinneapolisUSA

Personalised recommendations