Doubt about UML

Asked

Viewed 47 times

0

I have a question about the link of these tables in the image below. What I highlighted is really an association??

The correct figure of the arrow would not be so > to be an association? And what does that arrow there mean?

And the other link that is dotted what is and what is the meaning of it?

inserir a descrição da imagem aqui

1 answer

1


From what I understand, it is not really within the best standards, but it seems that Window is a subclass of Glyph, and makes use of the Draw method providing an instance of Window by running the Redraw method.

implemented would be something like:

public class Window extends Glyph {
   public void Redraw() {
      // Toda implementação de Draw...
   }
}

The stippling in the case would be an example of the use of Glyph through Window.

public class Window extends Glyph {
   public void Redraw() {
      super.Draw(this);
   }

   public void Iconify() { }

   public void Lower() { }

   public void DrawLine() { }

}
  • Tie, then Window extends Glyph through that arrow in the image, right? And in case the Dialogwindow extends Window through that triangle? In case the 2 notations indicate the same thing? I understood what you meant, but when analyzing Dialogwindow it was strange these 2 notations

  • That there, the line with arrow indicates the relation of extends or Mplements, depends on how the classes were modeled, The dotted should even be a usage statement, Already in the case Dialogwindow is surely wrong, because it is ambiguous, it tries to show that Dialogwindow inherits from Window through the Owner, through the right arrow, but the junction of the three relations with the triangle already does this...

Browser other questions tagged

You are not signed in. Login or sign up in order to post.