Unit-1-2-3 Uml
Unit-1-2-3 Uml
UML provides a wide range of diagram types that can be used to visualize various aspects of a software system, such
as class diagrams, sequence diagrams, state diagrams, activity diagrams, and others. These diagrams are used to
communicate the design of a system to stakeholders, to document the system for future reference, and to help identify
potential problems or areas for improvement.
UML is widely used in the software industry and is supported by many software development tools. It is also commonly
taught in computer science and software engineering courses, making it a valuable skill for software professionals.
Class Diagram:
A class diagram consists of class objects represented as boxes with three compartments. The top compartment contains
the name of the class, the middle compartment contains the class's attributes (instance variables), and the bottom
compartment contains the methods (operations) of the class.
UNIT-2
Modeling Relationships in Class Diagrams: Association, Aggregation Composition and examples
covering these principles
Modeling relationships:
Modeling relationships between classes in class diagrams is a fundamental aspect of UML and is used to
represent the relationships between classes in a software system. UML provides several types of
relationships that can be used to model different types of connections between classes, including:
● Dependency: A dependency is a relationship between two classes where a change in one class may
affect the other class. It is represented by a dashed arrow pointing from the dependent class to the
class it depends on.
In the following example, Student_Name is dependent on the Student_Id.
A contact book consists of multiple contacts, and if you delete the contact book, all
the contacts will be lost.