How to imagine that all package classes implement the interface

I am trying to model an MVC architecture for a small website. My models are all in a model package, and I have a model interface that the whole model should have. So my question was about this implementation. Is it possible to do so?

enter image description here

And if this is wrong, is there a way to say that all classes in the package implement the interface?

+4
source share
1 answer

No. That would be wrong. You need to draw an implementation relation for each class that implements the interface.

enter image description here

+3
source

All Articles