# Package Diagram

Published 2022-12-03

This tutorial explains to you what a UML Package Diagram is. Here are the concepts explanation and an example.

Package diagram is UML structure diagram which shows structure of the designed system at the level of packages.

Here is an example:

Here you can see that the WEB Shopping Package and the TV Shopping Package are included into the Shopping Package. The Shopping Package is using the Payment Package.

Package is a namespace used to group together elements that are semantically related and might change together. It is a general purpose mechanism to organize elements into groups to provide better structure for system model.

As you can see in a Package Diagram in UML, a Package can contain: a Model, a Subsystem, a Package, a Class, an Interface, etc. Take a look at the picture above.