I have a class Idea and class Generator
In Generator’s run() method, a list of Idea will be constructed and returned as return value of run()
I only know that if Generator has a member which is a list of Idea, their dependency relationship will exist certainly. But how about the situation I mentioned above?
When looking at dependencies, ask yourself what would happen if you didn’t have that particular class. If it wouldn’t run/compile, then there is a dependency. So yes, Generator has a dependency on Idea.