My teacher gave us a homework to draw a class diagram using something like this
class PersonRole{}
class Employee{
isA PersonRole;
}
class Manager {
isA Employee;
0..1 -- * Employee;
}
I know in order to draw a reflexive association, both instances has to have same class(is that correct?)
But in this instance, manager inherits from employee, and employee inherits from personrole.
So can I say both of their class are personrole and draw a reflexive association between them?
If not, do I just Draw generalization and association?
i tried to draw normal reflexive line like this
but it feels weird
I also tried this
Feels OK but I wonder if using reflexive is possible