Skip to Main Content
Practical C++
book

Practical C++

by Rob McGregor
August 1999
Beginner to intermediate content levelBeginner to intermediate
912 pages
15h 44m
English
Que
Content preview from Practical C++

Chapter 21. Understanding C++ Classes

<feature>
  • Discover C++ classes and class design

  • Learn to encapsulate data and functions into C++ classes

  • Understand the this pointer

  • Discover how to use constructors and destructors

  • See how to specify access to class members

</feature>

Creating C++ Classes

If there’s one thing that truly sets C++ head and shoulders above C, it’s got to be classes. C++ classes offer you an elegant, object-oriented solution to writing code that’s easy to maintain and modify. In procedural programming languages, you typically create data structures and write functions to manipulate them, but in C++, you can bind the functions to the data that the functions act on. The class is the cornerstone of object-oriented programming in C++. ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Practical C++ Programming, 2nd Edition

Practical C++ Programming, 2nd Edition

Steve Oualline
C++ Cookbook

C++ Cookbook

D. Ryan Stephens, Christopher Diggins, Jonathan Turkanis, Jeff Cogswell

Publisher Resources

ISBN: 0789721449Purchase book