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.

2.1 GOALS AND PRINCIPLES

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 the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.