tomaszsvd tomaszsvd - 1 year ago 163
Java Question

UML Diagram with interface

I need to create UML diagram for my program, car park, I'am not sure what to do after I have designed those classes. The program is constructed out of 7 classes.

Vehicle implements Comparable

Car extends Vehicle

Van extends Vehicle

Motorbike extends Vehicle

interface CarPark

CarParkManager implements CarPark


Right now im not sure how and where to add those remaining classes or if they should be connected to the vehicle ? Any tips on that ?

Answer Source

Note that

  • Full arrow with empty head is extension
  • Stripped arrow with empty head is implementation

If I don't mind all the fields, I'd draw roughly something like this:

enter image description here

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download