Skip to Content
Navigating C++ and Object-Oriented Design
book

Navigating C++ and Object-Oriented Design

by Paul Anderson, Gail Anderson
October 1997
Intermediate to advanced
800 pages
20h 48m
English
Pearson
Content preview from Navigating C++ and Object-Oriented Design

Chapter 11. Inheritance

Inheritance is a powerful language feature and a primary characteristic of an object-oriented language. This chapter explores what inheritance is, how it helps programmers organize classes that more accurately reflect the real world, and how inheritance encourages code reuse and consistent design strategies.

Bundled with inheritance comes polymorphism, the ability to use objects consistently and correctly without knowing their exact type at compile time. This chapter presents virtual functions and dynamic binding, the C++ language features that implement polymorphism. We discuss abstract base classes as they relate to program design and demonstrate how virtual constructors build objects whose type is not known until run ...

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

Exploring C++20: The Programmer's Introduction to C++

Exploring C++20: The Programmer's Introduction to C++

Ray Lischner

Publisher Resources

ISBN: 0135327482Purchase book