O'Reilly logo

Beginning C++ by Ivor Horton

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

image

Inheritance

In this chapter, you’re going to look into a topic that lies at the heart of object-oriented programming: inheritance. Inheritance is the means by which you can create new classes by reusing and expanding on existing class definitions. Inheritance is also fundamental to making polymorphism possible, and polymorphism is a basic feature of object-oriented programming. I’ll discuss polymorphism in the next chapter, so you what you’ll learn there is an integral part of what inheritance is all about. There are subtleties in inheritance that I’ll tease out using code that shows what is happening.

In this chapter you’ll learn: ...

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