extends implements

Hi all, My java class both extends and implements.To illustrate this in UML do I just use the generalization (arrow) line betweeen classes or is thier another way.Cjheerss
[200 byte] By [hommera] at [2007-9-28 16:47:41]
# 1

To show that your class extends another object, you use the generalization arrow. To show that your class implements an interface, you would use a generalization arrow with a dotted line implying implementation rather than extension.

If you are trying to indicate that you are extending and implementing the same class, this is a technical violation. Based on diagramming rules, you can only show implementation of interfaces and not concrete or abstract classes. You can only show extension of concrete or abstract classes. So you can only show one or the other between two classes or a class and an interface.

jonathanhousea at 2007-7-12 14:04:07 > top of Java-index,Other Topics,Patterns & OO Design...