All challenges
Multiple ChoiceBeginner 45s

Package cohesion: CCP

The Common Closure Principle suggests:
Options
  1. 1Every package must contain exactly one class and expose one method
  2. 2Classes in a package must never share any common dependencies at all
  3. 3Classes that change together for the same reason belong in the same package
  4. 4Packages should be split purely by layer, not by change reason

Think you can answer under pressure?

Get matched and answer live questions in 3-minute 1v1 battles. Elo ranking, badge tiers and bragging rights on the line.

Play this in a 3-minute battle