A software artifact should be open for extension but closed for modification.
- Chapter 8 OCP: The Open-Closed Principle
- from Clean Architecture: A Craftsman's Guide to Software Structure and Design, 1/e
- Publisher: Prentice Hall
- Released: September 2017
We can obey this without using the complex class diagram below. Common usage of the Repository pattern shall suffice.
Share this highlighthttp://www.safaribooksonline.com/a/clean-architecture-a/9833923/