Docsity

Class Diagram-Object Oriented Analysis And Design-Lecture Slides, Slides of Object Oriented Analysis and Design

Partial preview of the text

Download Class Diagram-Object Oriented Analysis And Design-Lecture Slides and more Slides Object Oriented Analysis and Design in PDF only on Docsity!

 A class diagram depicts classes and their interrelationships

 Used for describing structure and behavior in the use cases

 Provide a conceptual model of the system in terms of

entities and their relationships

 Used for requirement capture, end-user interaction

 Detailed class diagrams are used for developers

 Each class is represented by a rectangle subdivided into three compartments  Name  Attributes  Operations

 Modifiers are used to indicate visibility of attributes and operations.

 ‘+’ is used to denote Public visibility (everyone)

 ‘#’ is used to denote Protected visibility (friends and derived)

 ‘-’ is used to denote Private visibility (no one)

 By default, attributes are hidden and operations are visible.

OO Relationships

 There are two kinds of Relationships

 Generalization (parent-child relationship)  Association (student enrolls in course)

 Associations can be further classified as

 Aggregation

 Composition