Chapter 2

Object Oriented Concepts

In Chapter 1, a review of some important features of C++ have been covered. This chapter starts with Object- oriented Goals and Principles. It proceeds with the discussion about constructors, destructors, overloading of constructors and operators. It also concentrates on other important concepts of C++ such as inheritance, polymorphism, abstract classes, generic programming with function and class templates. Finally it covers recursion.


Object-Oriented design has some goals that are to be achieved in developing a modern software. The object-oriented principles are to be followed in the design to facilitate the goals.

2.1.1 Object Oriented Design Goals

The software implementation should ...

Get Data Structures and Algorithms Using C++ now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.