Free Trial

Safari Books Online is a digital library providing on-demand subscription access to thousands of learning resources.


  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • DownloadDownload
  • PrintPrint
Share this Page URL
Help

A. SOLID Principles of Class Design

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 for only a single reason.


  

You are currently reading a PREVIEW of this book.

                                                                                        

Get instant access to over
$1 million worth of books and videos.

  

Start a Free Trial