 Presented by
◦ Ramesh V. Gurram
◦ (cm dept 3rd year )
A class diagram describes the set of Classes in a
system and the static relationships between
them.
 Describes a set of objects having similar:
◦ Attributes (status)
◦ Operations (behavior)
◦ Relationships with other classes
 Attributes and operations may
◦ have their visibility marked:
◦ "+" for public
◦ "#" for protected
◦ "−" for private
◦ "~" for package
UML Class Diagrams 3
Window
size: Size
visibility: boolean
display()
hide()
Class
Name
Attribute
s
Operatio
ns
Class
• class is abstract concept
• each object is instance of a class
• classes classify objects
• attribute has no values
Class
Customer
Custno
Name
Address
Order
Orderno
dateReceived
Price
Object analysis  than values to attributes
• Attribute has no values
• Association is relation between classes
Class Diagram
Customer
Cust_no
Name
Address
Order
Order_no
Date_Received
Price
Link is instance of association
1 *
Library Management System
Relationships
1) Association:-
• Association is a relationship between classes .
OR
•Association is a set of links.
It is represented by solid line.
Notation
Employee Company
2) Dependancy
Dependancy is the relationship between two things in which
changes to one thing(independent thing) may affect on other
thing(Dependent thing).
Notation
3)Genralisation
Genralisation is the relationship between a superclass
and subclass where subclass shares the properties of
superclass.
notation
4)Realization
Realisation is relationship between classifier, where one
classifier specifies
A contract and another classifier guarantees to carryout.
It is relatiopnship between interface sand classes .
notation

Class diagram

  • 1.
     Presented by ◦Ramesh V. Gurram ◦ (cm dept 3rd year )
  • 2.
    A class diagramdescribes the set of Classes in a system and the static relationships between them.
  • 3.
     Describes aset of objects having similar: ◦ Attributes (status) ◦ Operations (behavior) ◦ Relationships with other classes  Attributes and operations may ◦ have their visibility marked: ◦ "+" for public ◦ "#" for protected ◦ "−" for private ◦ "~" for package UML Class Diagrams 3 Window size: Size visibility: boolean display() hide() Class Name Attribute s Operatio ns
  • 4.
    Class • class isabstract concept • each object is instance of a class • classes classify objects • attribute has no values Class Customer Custno Name Address Order Orderno dateReceived Price Object analysis  than values to attributes
  • 5.
    • Attribute hasno values • Association is relation between classes Class Diagram Customer Cust_no Name Address Order Order_no Date_Received Price Link is instance of association 1 *
  • 6.
  • 7.
    Relationships 1) Association:- • Associationis a relationship between classes . OR •Association is a set of links. It is represented by solid line. Notation Employee Company
  • 8.
    2) Dependancy Dependancy isthe relationship between two things in which changes to one thing(independent thing) may affect on other thing(Dependent thing). Notation
  • 9.
    3)Genralisation Genralisation is therelationship between a superclass and subclass where subclass shares the properties of superclass. notation
  • 10.
    4)Realization Realisation is relationshipbetween classifier, where one classifier specifies A contract and another classifier guarantees to carryout. It is relatiopnship between interface sand classes . notation