Safari Books Online is a digital library providing on-demand subscription access to thousands of learning resources.
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 server functions do not know about client code algorithms.