1

How do you represent Inheritance in a UML class diagramm if the base class is not part of the module. Say e.g. you have a class myScene (in your diagramm) that extends the javafx.scene.Scene, how do you show this relationship?

5
  • 2
    I tend to draw up the classes even if they are not designed by me, then I represent them in a different colour and add a comment to communicate this. Commented Nov 6, 2016 at 21:28
  • So you just add them but with or wthout methods? I'm afraid that adding all methods would just blow up the whole thing too much. Commented Nov 6, 2016 at 21:29
  • 1
    It depends on the model's purpose. If documenting a domain model for other to reference, then I would put in everything. If the purpose of the diagram is to give an abstract overview then I supposed inheriting from an empty "javafx.scene.Scene" would be ok -- again while adding a comment. Commented Nov 6, 2016 at 21:32
  • Do as @Pétur said. That's fine. You can leave away class details. Commented Nov 6, 2016 at 21:32
  • @Pétur you should make this an answer. Commented Nov 6, 2016 at 21:44

1 Answer 1

3

I tend to draw up the classes even if they are not designed by me, then I represent them in a different colour and add a comment to communicate this.

In a comment you asked:

So you just add them but with or wthout methods? I'm afraid that adding all methods would just blow up the whole thing too much.

It depends on the model's purpose. If documenting a domain model for other to reference, then I would put in everything. If the purpose of the diagram is to give an abstract overview then I supposed inheriting from an empty "javafx.scene.Scene" would be ok -- again while adding a comment.

Sign up to request clarification or add additional context in comments.

Comments

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.