Chapter 8. Inheritance

After completing this chapter, you will be able to:

  • Describe the importance of inheritance in object-oriented programming.

  • Define a base class.

  • Define a derived class.

  • Access base-class members from the derived class.

  • Use the virtual keyword to achieve polymorphism.

  • Define abstract classes and abstract methods.

  • Define sealed classes.

  • Use interfaces.

In this chapter, you will learn how to use all aspects of inheritance in C++/CLI. You will see how to define base classes and derived classes, and you will find out how to use these classes effectively in your application.

What is inheritance?

Inheritance is an important concept in object-oriented programming, helping us relate and classify types in a way that makes our applications more ...

Get Microsoft Visual C++/CLI Step by Step 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.