UML Class Diagram With Inheritance and Interface

azuosxela

I'm trying to understand how can I draw an UML diagram of a program that extends one class and implements another class. I've made this sketch but I'm not sure if it is correct.

A is a class that has some fields and methods and B is an interface which has some methods. And finally C is extending from A and implements B. ( like public class C extends A implements B in java)

enter image description here

qwerty_so

Your diagram is almost correct. The left generalization is drawn like a unfilled triangle.

enter image description here

Edit: In Enterprise Architect you can show the generalization also with the general class written in italics top right of the generalizing class:

enter image description here

Obviously this is a pure Sparxian invention as their support does not have an explanation for its origin.

Collected from the Internet

Please contact [email protected] to delete if infringement.

edited at
0

Comments

0 comments
Login to comment

Related