Skip to Main Content
C++ Programming: Visual QuickStart Guide
book

C++ Programming: Visual QuickStart Guide

by Larry Ullman, Andreas Signer
December 2005
Beginner content levelBeginner
528 pages
14h 13m
English
Peachpit Press
Content preview from C++ Programming: Visual QuickStart Guide

8. Class Inheritance

Now that you know how to create simple classes, you’re ready to learn one of the most important features of C++: inheritance. Inheritance is a core concept in object-oriented programming, revolutionizing the way software is modeled. Inheritance lets you build hierarchies of classes, each class inheriting methods and attributes from its base class. Because classes inherit members from the base class, those members can be used as if you had an object of that base class available. In short, inheritance allows you to expand upon existing, solid code so that it can be adopted for new applications. But don’t worry, it’s easier than it sounds, and we’ll take you through it gently.

In this chapter, we’ll introduce you to the basics ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

C Programming: Visual Quickstart Guide

C Programming: Visual Quickstart Guide

Larry Ullman, Marc Liyanage

Publisher Resources

ISBN: 032135656XPurchase book