0% found this document useful (0 votes)
18 views9 pages

W3L2

This document discusses class diagrams and software design. It explains that class diagrams show the classes in a system and the associations between classes, with each class representing a type of object. Classes have attributes and operations, and associations indicate relationships between classes. The document provides an example class diagram for a patient management system to demonstrate how classes and associations are used to model real-world objects and their relationships.

Uploaded by

avantisng2203
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
18 views9 pages

W3L2

This document discusses class diagrams and software design. It explains that class diagrams show the classes in a system and the associations between classes, with each class representing a type of object. Classes have attributes and operations, and associations indicate relationships between classes. The document provides an example class diagram for a patient management system to demonstrate how classes and associations are used to model real-world objects and their relationships.

Uploaded by

avantisng2203
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 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