Introduction into Object-Related Programming with C++

A prerequesite for this tutorial is deeper knowledge of C.

This tutorial should help one to understand the basis of object related programming. The pros and cons will be outlined and discussed with an example for an implementation. This lesson implements an interface for the STL vector container object, as this object suits very well for implementing functions to handle this STL vector. Further explanations of the STL vector class can be found here . In general, ob ject related programming offers structuring of a problem to the programmer. Due to this fact this kind of coding is very modular and therefore very extendible. The object related programming suits best for data related problems. On the other side we will see that this kind of coding does not suit best for implementing algorithms.

 

Ingredients

In this lesson the following data are required:

source code demo file main.cpp
source code class demo header file container.hh
source code class demo file container.cpp

Tasks

 

Hints