SOLID & OOP Principles (50 Qs)•Part 3: Enterprise Architecture, Package Design & Enforcement (25 - 35)
Explain the Common Closure Principle (CCP) and Common Reuse Principle (CRP)?
senior LevelMost AskedClosures & ScopeSystem Design
In Simple Words:
- CCP: Classes that change together should be packaged together in the same module.
- CRP: Classes that are not used together should not be packaged together.