O'Reilly logo

Object-oriented Programming Using C++ and Java by Anand Vasappanavara, Gautam Vasappanavara, Ramesh Vasappanavara

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

12

Inheritance

LEARNING OBJECTIVES

At the end of this chapter, you should be able to

  • Use inheritance to extend a new class from the existing classes.
  • Understand the types of inheritances and concepts therein.
  • Understand the concepts of ADT, virtual functions, and dynamic data binding.

12.1 Introduction

The concept of inheritance is not new to us. We inherit property, goodwill and name from our parents. Similarly, our descendants will derive these qualities from us. Reusability of code is one of the strong promises that are made by C++ and inheritance is the tool selected by C++ to fulfill this promise. In this chapter, we take you through inheritance and its properties and rules. We will dwelve into the terminology of inheritance and the ...

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