Summary

You cannot master OOP with C++ in one chapter, but you've already learned the fundamentals of how C++ works. At its most basic level, the C++ language offers improvements over C even if you don't use object-oriented programming. Nevertheless, when you begin to use OOP, you will learn to create classes that define objects that seem to take on lives of their own. The objects understand how to perform some duties based on their member functions, and you can extend the objects through inheritance to derive new classes that you can use later.

  • OOP increases your flexibility because objects take on a life of their own and decrease programming time.

  • The object's class determines which properties the object contains.

  • By reusing objects, you reduce ...

Get Absolute Beginner's Guide to Programming, Second 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.