0% found this document useful (0 votes)
25 views

Class Diagram

Class diagrams are the blueprints of your system or subsystem. You can use class diagrams to model the objects that make up the system, to display the relationships between the objects, and to describe what those objects do and the services that they provide.

Uploaded by

foggyox407
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
25 views

Class Diagram

Class diagrams are the blueprints of your system or subsystem. You can use class diagrams to model the objects that make up the system, to display the relationships between the objects, and to describe what those objects do and the services that they provide.

Uploaded by

foggyox407
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 18

Object Oriented Analysis

and Design
CONSTRUCTION PHASE
CLASS DIAGRAM
Compiled and Presented By:
Muhammad Imran Saeed,
Assistant Professor,
DCS&SE,
© 2020 Muhammad Imran Saeed. This International Islamic University, Islamabad.
Lecture is available free for non-commercial
use with attribution.
Object Oriented
Analysis and Design
Disclaimer and Acknowledgement
These Class notes/lectures have been COMPILED to
help students for online Classes (due to Covid’19
Epidemic) from different books and resources available
on internet.
So I personally acknowledge all the authors, teachers,
presenters, publishers and other organizations etc.
This Compilation work is soul Intellectual Property of Undersigned.
© 2020 Muhammad Imran Saeed. This Lecture is available free for non-commercial use with attribution.
Object Oriented
Analysis and Design
Textbook Followed in this Series of Lectures

-OOAD with UML: Object Oriented Analysis and Design


Using the UML.
-Other Resources from Internet.

© 2020 Muhammad Imran Saeed. This Lecture is available free for non-commercial use with attribution.
Object Oriented
Analysis and Design

UML (Unified Modeling Language)Diagrams


CLASS DIAGRAM
Object Oriented
Analysis and Design

What is CLASS
DIAGRAM?
Object Oriented
Analysis and Design
What is CLASS DIAGRAM?
• UML CLASS DIAGRAM gives an overview of a
software system by displaying classes, attributes,
operations, and their relationships.
• This Diagram includes the class name, attributes,
and operation in separate designated
compartments.
Object Oriented
Analysis and Design
What is CLASS DIAGRAM? (Cont..)
• Class Diagram defines the types of objects in the system
and the different types of relationships that exist among
them.
• It gives a high-level view of an application.
• A class can refer to another class.
• A class can have its objects or may inherit from other
classes.
Object Oriented
Analysis and Design

Purpose of Class Diagram


● To Describe the Classes of an Object.
● To Show the Attributes of each object.
● To Describe the method of each Class.
● To show the relationship different Classes
Object Oriented
Analysis and Design
Notation / Visual Representation / Symbols
Class:
• As we had CONCEPT in conceptual Model,
so we try to concert each concept into a
Class.
• A Class contains, Class Name, Attributes,
Operations (Methods/Functions)
Object Oriented
Analysis and Design
Notation / Visual Representation / Symbols
Attributes:
• An attribute is named property of a class
which describes the object being modeled.
• In the class diagram, this component is
placed just below the name-compartment.
Object Oriented
Analysis and Design
Notation / Visual Representation / Symbols
Association:
• If two classes in a model need to communicate
with each other, there must be a link between
them, and that can be represented by an
association (connector).
• Association can be represented by a line
between these classes
Object Oriented
Analysis and Design
Notation / Visual Representation / Symbols
Association: (Cont..)
Object Oriented
Analysis and Design
Notation / Visual Representation / Symbols
Generalization Vs Specialization:
• Generalization is a mechanism for combining similar classes of objects into
a single, more general class.
• Generalization identifies commonalities among a set of entities.
• The commonality may be of attributes, behavior, or both. In other words, a
superclass has the most general attributes, operations, and relationships
that may be shared with subclasses.
• A subclass may have more specialized attributes and operations.
Object Oriented
Analysis and Design
Notation / Visual Representation / Symbols
Generalization Vs Specialization: (Cont..)
Object Oriented
Analysis and Design
Notation / Visual Representation / Symbols
Generalization Vs Inheritance:
• Generalization is the term that we use to denote abstraction of common
properties into a base class in UML.
• The UML diagram's Generalization association is also known as Inheritance.
• When we implement Generalization in a programming language, it is often
called Inheritance instead. Generalization and inheritance are the same.
• The terminology just differs depending on the context where it is being
used.
Object Oriented
Analysis and Design
Example:
Object Oriented
Analysis and Design
Home Work/Student Activity:

Draw a Detailed Class Diagram for your Class


Project.
Advice

Along with this presentation also study from book and


consider different case studies from different websites
to prepare for real life practices.

THANK YOU

© 2020 Muhammad Imran Saeed. This Video/presentation is available free for non-commercial use with attribution.

You might also like