Skip to main content

Interfaces

  • Chapter
Book cover C++/CLI
  • 1098 Accesses

Abstract

Interfaces may contain method declarations (including properties and events) and static methods, but no instance method definitions and no instance data members. As you already know, interfaces partially take the place of multiple inheritance in C++/CLI. However, the words “inherit from” are not used; rather, the word used is “implements,” since the class that implements an interface must provide the method bodies for all the instance methods declared in the interface, even if it is an abstract class.

This is a preview of subscription content, log in via an institution to check access.

Access this chapter

Chapter
USD 29.95
Price excludes VAT (USA)
  • Available as PDF
  • Read on any device
  • Instant download
  • Own it forever
eBook
USD 54.99
Price excludes VAT (USA)
  • Available as PDF
  • Read on any device
  • Instant download
  • Own it forever
Softcover Book
USD 69.99
Price excludes VAT (USA)
  • Compact, lightweight edition
  • Dispatched in 3 to 5 business days
  • Free shipping worldwide - see info
Hardcover Book
USD 79.99
Price excludes VAT (USA)
  • Durable hardcover edition
  • Dispatched in 3 to 5 business days
  • Free shipping worldwide - see info

Tax calculation will be finalised at checkout

Purchases are for personal use only

Institutional subscriptions

Preview

Unable to display preview. Download preview PDF.

Unable to display preview. Download preview PDF.

Rights and permissions

Reprints and permissions

Copyright information

© 2006 Gordon Hogenson

About this chapter

Cite this chapter

(2006). Interfaces. In: C++/CLI. Apress. https://doi.org/10.1007/978-1-4302-0282-0_9

Download citation

Publish with us

Policies and ethics