Chapter 2. Object-Oriented Programming in C++

As C++ is an object-oriented language, it fully supports the object-oriented model. Even though it is possible to write working programs in C++ only by means of the techniques presented in the previous chapter, I strongly suggest that you learn the techniques of this chapter. They are what makes C++ a modern and powerful language. This chapter covers the following topics:

  • First, we look into the theoretical foundation of the object-oriented model. It consists of the three cornerstones and the five relations.

  • The basic feature of the object-oriented model is the class. A class can be instanced into an object. A class consists of members, which are functions or variables. When located inside a class, they ...

Get Microsoft Visual C++ Windows Applications by Example 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.