tomaszsvd tomaszsvd - 1 month ago 20
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

DateTime

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

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

Comments