A. SOLID Principles of Class Design

The SOLID principles lie at the heart of the object-oriented paradigm. Many of the principles presented here first appeared in Robert Martin’s Agile Software Development: Principles, Patterns, and Practices (2002), which serves as an excellent companion to this discussion. These principles help you manage dependencies between classes and encourage class cohesion. They are also critical to effective module design using object-oriented techniques.

Note

For a discussion on how the SOLID principle of class design aids the development of modular software applications, see Chapter 4, “Taming the Beast Named Complexity.”

The SOLID principles are the following:

Single Responsible Principle: Classes should change ...

Get Java Application Architecture: Modularity Patterns with Examples Using OSGi 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.