Chapter 9. C++ Class as a Unit of Modularization

Topics in this Chapter

In the previous chapter, I formulated the basic principles of object-oriented programming using functions as program building blocks. With the object-oriented approach to building programs, client code calls server access functions instead of accessing and modifying data fields directly. Server functions provide operations directed toward achieving the client code goals. Responsibilities are allocated among functions so that client functions do not know about data representation, and ...

Get Core C++ A Software Engineering Approach 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.