Package Cohesion and Coupling Principles Quiz

MonumentalPrairie avatar
MonumentalPrairie
·
·
Download

Start Quiz

Study Flashcards

5 Questions

What are the two principles of package cohesion introduced in the text?

The Common Closure Principle and The Common Reuse Principle

What is the Common Closure Principle about?

Classes that change together belong together

What is the focus of the Common Reuse Principle?

Classes that aren’t reused together should not be grouped together

Which principle is concerned with minimizing the work to rebuild, test, and deploy a release?

The Common Closure Principle

What is the aim of grouping classes based on the Common Closure Principle?

To group together classes that will change together

Study Notes

Package Cohesion Principles

  • There are two principles of package cohesion: the Common Closure Principle (CCP) and the Common Reuse Principle (CRP).

Common Closure Principle

  • The Common Closure Principle aims to group classes that are likely to change together in the same package.
  • It focuses on minimizing the work to rebuild, test, and deploy a release.

Common Reuse Principle

  • The Common Reuse Principle is focused on grouping classes that are used together in the same package.

Test your knowledge of package cohesion and coupling principles in software design and architecture. Learn about the Common Closure Principle, Common Reuse Principle, Acyclic Dependencies Principle, and Stable Dependencies Principle.

Make Your Own Quizzes and Flashcards

Convert your notes into interactive study material.

Get started for free
Use Quizgecko on...
Browser
Browser