22.2 OBJECT-ORIENTED DESIGN (OOD)

The output of OOA becomes the input/starting point for OOD. We have identified classes and objects. All of them may not be necessary. During the design process, one can decide if some of the classes be combined in to one. Now all the classes must be specified. Their inter dependencies also have to be specified.

The detail design of attributes and member functions must be decided. UML diagrams help in the process of design.

In case of large programs we have to decide on modules. In practical terms, each module is placed in its individual header file.

The design of main program comes later. Some texts call it a driver program.

Roger S. pressman describes OOD as a four layered pyramid. The various layers are

Get Object Oriented Programming with C++, 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.