SE Practical5
SE Practical5
AIM: Prepare the structural view: Draw Class diagram and object diagram.
• Objectives: to learn about UML class diagram and object diagram components.
• Theory:
o Class diagram:
▪ The class diagram depicts a static view of an application. It represents the
types of objects residing in the system and the relationships between them.
A class consists of its objects, and also it may inherit from other classes. A
class diagram is used to visualize, describe, document various different
aspects of the system, and also construct executable software code.
▪ It shows the attributes, classes, functions, and relationships to give an
overview of the software system. It constitutes class names, attributes, and
functions in a separate compartment that helps in software development.
Since it is a collection of classes, interfaces, associations, collaborations, and
constraints, it is termed as a structural diagram.
o Object diagram:
o Object diagrams are dependent on the class diagram as they are derived from
the class diagram. It represents an instance of a class diagram. The objects
help in portraying a static view of an object-oriented system at a specific
instant.
o Both the object and class diagram are similar to some extent; the only
difference is that the class diagram provides an abstract view of a system. It
helps in visualizing a particular functionality of a system.
The object diagram holds the same purpose as that of a class diagram. The class
diagram provides an abstract view which comprises of classes and their
relationships, whereas the object diagram represents an instance at a particular
point of time.
The object diagram is actually similar to the concrete (actual) system behavior.
The main purpose is to depict a static view of a system.
• Background / Preparation:
How to draw a Class Diagram?
The class diagram is used most widely to construct software applications. It not
only represents a static view of the system but also all the major aspects of an
application. A collection of class diagrams as a whole represents a system.
Some key points that are needed to keep in mind while drawing a class diagram are
given below:
• Procedure / Steps:
Quiz:
Suggested Reference:
1) Domain Analysis.
2) Domain Analysis Using Textual Analysis Approach
3) Domain model
4) Business Modeling – The Domain Model
5) I. Y. Song, K. Yano, J. Trujillo, and S. Luján-Mora. "A Taxonomic Class Modeling
Methodology for Object-Oriented Analysis", In Information Modeling Methods and
Methodologies, Advanced Topics in Databases Series, Ed. (J Krostige, T. Halpin, K. Siau),
Idea Group Publishing, 2004, pp. 216-240.
Rubric wise marks obtained:
Rubrics 1 2 3 4 5 Total
Correct answer to
all questions
Signature of Faculty: