Module 4 Final Classpptx.pptx
Module 4 Final Classpptx.pptx
Assistant Professor
Department of CSE
Subject:OOMD
Subject Code:21CS731
McGraw-Hill www.cambridge.edu.in
©The McGraw-Hill Companies, Inc., 2000
MODULE 4
Use case Realization :The Design Discipline within up iterations: Object Oriented
Design-The Bridge between Requirements and Implementation; Design Classes and
Design within Class Diagrams; Interaction Diagrams-Realizing Use Case and defining
methods; Designing with Communication Diagrams; Updating the Design Class
Diagram; Package Diagrams-Structuring the Major Components;
Implementation Issues for Three-Layer Design.
Textbook-2: Chapter 8: page 292 to 346
Object Oriented Design-The Bridge between Requirements and
Implementation
• The program includes an input window object that displays a form in which
to enter student identification and other information.
• After the student ID is entered, the input window object sends a message to
the student class to tell it to create a new student object in the program and
also go to the database and get the student information and put it in the
student object.
• Once that is done, the new student object also sends that information back to
the Input window object to display it on the screen.
• The registration clerk then enters the personal information updates and
another sequence of message is sent to update the student object in the
program and the student information in the database.
DESIGN CLASSES AND DESIGN CLASS DIAGRAMS
• Four types of design classes in UML: entity classes, control classes, boundary
classes, and data access classes.
• Entity Class: Represents a domain class from the problem domain. It is
passive and handles business data, typically stored in a file or database,
persisting even after the system shuts down.
• Control Class: Manages the flow of operations between boundary and
entity classes. It coordinates activities and logic within the system.
• Boundary Class: Handles interactions between the system and external
actors, often representing the user interface.
• Data Access Class: Provides a means to retrieve or save data to storage
systems like databases or files, ensuring structured access.
DESIGN CLASSES AND DESIGN CLASS DIAGRAMS
• The top compartment includes the stereotype name and class name, along with
the parent class (if applicable).
• The middle compartment lists attributes.
• The bottom compartment lists methods.
DESIGN CLASSES AND DESIGN CLASS DIAGRAMS
• Visibility: A "+" indicates public access, and a "-" indicates private access.
• Attribute Name
• Type Expression: Specifies the data type (e.g., string, integer, date etc).
• Initial Value: starting value.
• Properties: Defined within curly braces, e.g., {key}.
DESIGN CLASSES AND DESIGN CLASS DIAGRAMS
OBJECT RESPONSIBILITIES:
2. Doing:
• Doing includes all the activities an object does to assist in the execution
of a use case.
• Another doing responsibility will be to instantiate. or create. new objects
that may be required for completion of a use case.
• Some classes are responsible coordinating the collaboration.
DESIGN CLASSES AND DESIGN CLASS DIAGRAMS