Skip to main content

Inheritance

  • Chapter
C++/CLI
  • 1101 Accesses

Abstract

The inheritance model for C++/CLI classes is not the same as that in C++. Multiple inheritance (of managed class types) is not supported. Instead, C++/CLI reference types may only inherit from one base class, but may implement multiple interfaces. This is the only supported inheritance model in the CLI, so languages such as C# and VB .NET support the same model as C++/CLI. Other features of the model include the ability to specify whether a function with the same name as a base class’s virtual function is intended to be an override to that function, or whether it is a new function with the same name.

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

Access this chapter

eBook
USD 16.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). Inheritance. In: C++/CLI. Apress. https://doi.org/10.1007/978-1-4302-0282-0_8

Download citation

Publish with us

Policies and ethics