I have searched many hours over the course of the last few semesters trying to make sure that I am presenting this correctly to my students. Nothing I have found shows this particular relationship. This semester I'd like KNOW that I'm doing it correctly.
We have an abstract class, Player and two concrete classes that extend it (Pitcher and PositionPlayer). Then we have a class, Team with a map declared to be
<Integer, Player>
To me it seems that Team is dependent on Player (the abstract class) but I suppose dependence could be shown for the subclasses. Please tell me which of these is correct, the top one or the bottom one? (my UML editor won't do italics, hence the tags). Thank you in advance for your help.


