I'm doing a java application.
This are my files so far:
Person Interface.
has a setName(String aName) method
PersonImpl
Implementation of Person Interface.
PersonFactory Interface
has a createPerson()
PersonFactoryImpl
Implementation of PersonFactory Interface.
The thing is I was willing to add a method getAll() that returns a Collection of Persons and I am not sure where to place it.
I was thinking of adding it as an static method to PersonImpl or to PersonFactoryImpl, but I am not sure.
Which is the best way?
Thanks for reading!