What is the difference between package and subsystem?
Daniel Rodriguez
Published Feb 11, 2026
What is the difference between package and subsystem?
While a package simply groups elements, a subsystem groups elements that together provide services such that other elements may access only those services and none of the elements themselves. A subsystem is shown as a package marked with the subsystem keyword.
What is a subsystem in UML?
In UML models, subsystems are a type of stereotyped component that represent independent, behavioral units in a system. Subsystems are used in class, component, and use-case diagrams to represent large-scale components in the system that you are modeling. You can model an entire system as a hierarchy of subsystems.
What is a package diagram in UML?
Package diagrams are structural diagrams used to show the organization and arrangement of various model elements in the form of packages. A package is a grouping of related UML elements, such as diagrams, documents, classes, or even other packages.
What is package How do you model a subsystem using a package?
System and SubSystem In the UML, packages are represented as folders. A subsystem is a grouping of model elements that are part of the overall system. Subsystems, like systems, are stereotyped packages with the stereotype of <> as shown in the Figure below.
What is subsystem in Object Oriented Programming?
Subsystems are object-oriented constructs that are classifiers as well as packages: a subsystem can have instances (if the designer so indicates). UML provides another way to model groups of global variables and procedures in the utility, which is a stereotype of class – the utility has no instances.
What is difference between package and component?
In UML, components are groups of classes that are deployed together and packages are a general grouping device for model elements. Packages can group any model elements, even things like use cases, but in practice they usually group classes, so components and packages tend to be synonymous.
What is package Ooad?
A package is an organized group of elements. A package may contain structural things like classes, components, and other packages in it. Notation − Graphically, a package is represented by a tabbed folder. A package is generally drawn with only its name.
What is subsystem in object-oriented Programming?
How do you explain a package diagram?
Package diagrams are used to structure high level system elements. Packages are used for organizing large system which contains diagrams, documents and other key deliverables. Package Diagram can be used to simplify complex class diagrams, it can group classes into packages.
How do you draw package diagrams?
To create a Package Diagram, select Diagram > New from the toolbar. In the New Diagram window, select Package Diagram and click Next. Enter Racing Game Packages as diagram name and click OK to confirm. Click the Package button in diagram tool bar, then click on the blank area of the diagram to create the package.
What is package explain different kind of packages?
A Package can be defined as a grouping of related types (classes, interfaces, enumerations, and annotations ) providing access protection and namespace management. Some of the existing packages in Java are − java.lang − bundles the fundamental classes.