Lecture 1

You might also like

Download as pptx, pdf, or txt
Download as pptx, pdf, or txt
You are on page 1of 20

Lecture1

Object- Oriented Analysis And Design (OOAD)


Overview of Object-Oriented Analysis
• Object-oriented (O-O) analysis describes an information
system by identifying things called objects. An object
represents a real person, a place, an event, or a transaction.
For example, when a patient makes an appointment to see a
doctor, the patient is an object, the doctor is an object, and the
appointment itself is an object.

2
Overview of Object-Oriented Analysis
• Object-Oriented Terms and Concepts
– Object: is a person, place, or thing about which we
want to capture information.
– Attributes: Characteristics that describe the object.
– Methods: tasks or functions that the object
performs when it receives a message.
– Messages: are information sent to objects to trigger
methods.
– Class: is a group of similar objects.
– Instance: is a specific member of a class.

3
Overview of Object-Oriented Analysis

4
Overview of Object-Oriented Analysis

5
6
Overview of Object-Oriented Analysis
• Attributes
– If objects are similar to nouns, attributes are similar
to adjectives that describe the characteristics of an
object.
– Some objects might have a few attributes; others
might have dozens.
• State: for example bank account can be active,
inactive, closed, or frozen.

7
Overview of Object-Oriented Analysis
• Methods
– A method defines specific tasks that an object can
perform.
– Just as objects are similar to nouns and attributes
are similar to adjectives, methods resemble verbs
that describe what and how an object does
something.

8
• Messages
• Polymorphism: The same message to two different
objects can produce different results.

9
– A major advantage of O-O designs is that systems
analysts can save time and avoid errors by using
modular objects, and programmers can translate
the designs into code, working with reusable
program modules that have been tested and
verified.

10
Overview of Object-Oriented Analysis

• Classes
– An object belongs to a group or category called a
class.
– All objects within a class share common attributes
and methods.

11
Overview of Object-Oriented Analysis
• Classes

12
13
Relationships Among Objects and Classes

• Inheritance
• Child
• Parent

14
Object Modeling with the Unified Modeling
Language
• The UML uses a set of symbols to represent
graphically the various components and relationships
within a system.
• It mainly is used to support object-oriented systems
analysis and to develop object models.

15
Object Modeling with the (UML)

USE-CASE DIAGRAMS:
• a use-case diagram is drawn when gathering
and defining requirements for the system.
• A use-case diagram illustrates in a very simple
way the main functions of the system and the
different kinds of users that will interact with
it.
16
Elements of Use-Case Diagrams

17
Use-Case Diagram for the Appointment System

18
Extend and Include Relationships

19
Sample Use-Case Description

20

You might also like