What's Next

In this chapter, you saw some of the more advanced C++ features like function and operator overloading. You saw two non-trivial graphics examples that used recursion.

Up to now, the emphasis has been on functions. The data, as arrays, containers, or structs, has been relatively dumb. In the next chapter I am going to introduce another way of looking at programming. In object-oriented programming, the data becomes the center of attention, and functions are put inside the struct. Objects are collections of data that are responsible for managing their own data. You have already been using objects; the standard string, <iostream>, and the containers are all examples of the powerful types you can create using C++'s object-oriented features. ...

Get C++ By Example: UnderC Learning Edition 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.