SOLID & OOP Principles (50 Qs)•Part 3: Enterprise Architecture, Package Design & Enforcement (25 - 35)
What is the Stable Abstractions Principle (SAP) and Stable Dependencies Principle (SDP)?
senior LevelState ManagementSystem Design
In Simple Words:
- SDP: Depend in the direction of stability (depend on modules that are harder to change).
- SAP: A stable module should also be abstract (interfaces/abstract classes) so it can be extended.