CS FundamentalsVery hardProduct-company placement

In GRASP, which pattern describes creating a class such as OrderPersistenceService that has no counterpart in the domain, so that domain classes stay cohesive and free of database code?

  1. A. Information Expert
  2. B. Pure Fabrication
  3. C. Creator
  4. D. Controller

Correct answer: B. Pure Fabrication

Pure Fabrication invents a convenience class for high cohesion and low coupling when assigning the job to a domain class (here Order) would mix responsibilities. Information Expert would wrongly push saving into Order because it has the data.

More Software Engineering, Git and Cloud Basics questions

Exams that ask this topic