1

I have a product entity and a separate class for display and one to retrieve the data from the DB. My colleague wants to let these classes inherit from each other instead:

enter image description here

1 Answer 1

5

The latter is just non-sense. A Product is never a ProductLoader. And the display of a product is also not a product (or eventually it is some different kind of product). So just go with the first solution.

N.B. from what is currently shown the top right arrow should just be a Dependency. Instead of using an attribute you could use a role top left:

enter image description here

Sign up to request clarification or add additional context in comments.

Comments

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.