Chapter 10: Organizing the Problem for Reuse: Reuse of Utility Classes

10.1 Introduction

The first nine chapters of the text have been concerned with creating the framework for the solution to a problem that is to be implemented on a computer using components. Once the framework of a problem solution has been specified, we still must decide how to organize the pieces that will be used within that framework. This involves figuring out how to organize the data and methods in the program and is called problem decomposition. Decomposition can involve either not saving a state between invocations of a method (procedural functions) or saving a state between invocations of a method (using objects).

Objects can be organized according to composition ...

Get Creating Components 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.