Abstract
The last of the SOLID principles of class design focuses on class dependencies. It tells you what kinds of things a class should depend on:
This is a preview of subscription content, access via your institution.
Buying options









Notes
- 1.
Robert C. Martin, “The principles of OOD,” http://butunclebob.com/ArticleS.UncleBob.PrinciplesOfOod
- 2.
Robert C. Martin (May 1996), “The Dependency Inversion Principle,” C++ Report (PDF available at http://www.butunclebob.com/ArticleS.UncleBob.PrinciplesOfOod ).
- 3.
Robert C. Martin (May 1996), “The Dependency Inversion Principle,” C++ Report (PDF available at http://www.butunclebob.com/ArticleS.UncleBob.PrinciplesOfOod ).
- 4.
https://github.com/symfony/event-dispatcher/blob/2.3/EventDispatcherInterface.php
- 5.
- 6.
Erich Gamma e.a., Design Patterns: Elements of Reusable Object-Oriented Software, Addison-Wesley, 1994.
- 7.
Craig Larman, Applying UML and Patterns, Prentice Hall (2001).
- 8.
“Mocking at architectural boundaries: persistence and time,” https://matthiasnoback.nl/2018/02/mocking-at-architectural-boundaries-persistence-and-time/ “Mocking at architectural boundaries: the filesystem and randomness,” https://matthiasnoback.nl/2018/03/mocking-the-filesystem-and-randomness/ and “Mocking the network,” https://matthiasnoback.nl/2018/04/mocking-the-network/
- 9.
Erich Gamma e.a., Design Patterns: Elements of Reusable Object-Oriented Software, Addison-Wesley, 1994.
- 10.
Erich Gamma e.a., Design Patterns: Elements of Reusable Object-Oriented Software, Addison-Wesley, 1994.
- 11.
- 12.
- 13.
- 14.
- 15.
- 16.
Author information
Authors and Affiliations
Rights and permissions
Copyright information
© 2018 Matthias Noback
About this chapter
Cite this chapter
Noback, M. (2018). The Dependency Inversion Principle. In: Principles of Package Design. Apress, Berkeley, CA. https://doi.org/10.1007/978-1-4842-4119-6_5
Download citation
DOI: https://doi.org/10.1007/978-1-4842-4119-6_5
Published:
Publisher Name: Apress, Berkeley, CA
Print ISBN: 978-1-4842-4118-9
Online ISBN: 978-1-4842-4119-6
eBook Packages: Professional and Applied ComputingProfessional and Applied Computing (R0)Apress Access Books