Download as pdf or txt
Download as pdf or txt
You are on page 1of 9

Software Design

Class Diagram

Indranil Saha

Department of Computer Science and Engineering


Indian Institute of Technology Kanpur

CS253: Software Development and Operations Software Design 1/9


Objects

Objects represent something in the real world, such as a


patient, a prescription, a doctor, etc.

May need to define additional implementation objects that


are used to provide the required system functionality

CS253: Software Development and Operations Software Design 2/9


Class Diagrams

Class diagrams are used when developing an


object-oriented system model

Shows the classes in a system and the associations


between these classes

An object class can be thought of as a general definition of


one kind of system object

An association is a link between classes that indicates that


there is a relationship between these classes

Each class may have to have some knowledge of its


associated class

CS253: Software Development and Operations Software Design 3/9


Classes and Association

Look at the world, identify the essential objects, and


represent these as classes

Note the existence of an association

Name associations to give the reader an indication of the


type of relationship that exists

Show how many objects are involved in the association

CS253: Software Development and Operations Software Design 4/9


Example: Patient Class Diagram for MHC-PMS

CS253: Software Development and Operations Software Design 5/9


Example: Classes and Association in MHC-PMS

CS253: Software Development and Operations Software Design 6/9


Class Details

Attributes: The characteristics of an object

Operations: The things that you can request from an


object

CS253: Software Development and Operations Software Design 7/9


Example: The Consultation Class in MHC-PMS

CS253: Software Development and Operations Software Design 8/9


Software Design
Class Diagram

Indranil Saha

Department of Computer Science and Engineering


Indian Institute of Technology Kanpur

CS253: Software Development and Operations Software Design 9/9

You might also like