vendredi 23 novembre 2018

How to represent a method call that's through inheritance in a sequence diagram? (Ruby)

class FirstClass < SecondClass; end

class SecondClass
  include ThirdClass 
end

class ThirdClass 
  def inherited_method 
  end
end

How would I represent FirstClass.new.inherited_method in a UML sequence diagram? I want to explicitly show that the method is inherited from the ThirdClass (because I'm going to draw a parallel to another sequence that is also using the same inherited method).

Aucun commentaire:

Enregistrer un commentaire