Chapter 1
Chapter 1
2
Thinking in Objects
• But it is far more essential to ‘think’ in terms of objects as
providing ‘services’ and accommodating ‘responsibilities.’
3
Thinking in Terms of Objects
• Object-Oriented Analysis (Overview)
4
Thinking in Terms of Objects
• Object-Oriented Design
– Emphasizes a conceptual solution that fulfills the requirements.
– Need to define software objects and how they collaborate to fulfill the
requirements.
5
Thinking in Terms of Objects
From Design to Implementation
Analysis
Design Construction
investigation
logical solution code
of the problem
7
Object Oriented Modeling
8
Object Oriented Modeling
In OOM the modeling passes through the following processes:
• System Analysis
• System Design
• Object Design, and
• Final Implementation
9
System Analysis
10
System Design
11
Object Design
12
Final Implementation
13
Object Oriented Modeling
• Object model
• Dynamic model
• Functional model
14
Models
• Object models are used for describing the objects in the system
and their relationship among each other in the system.
15
Difference between OOD and Structured Development
16
Basic Philosophy of Object Orientation
Now, let us discuss about the basic characteristics around which
object oriented systems are developed.
• Abstraction
• Encapsulation
• Polymorphism
• Sharing of Structure and Behaviour
• Emphasis on Object Structure, not on Operation
Implementation
17
Characteristics of Object Oriented Modeling
18
Class & Object
A class is a collection of things, or concepts that have the same
characteristics. Each of these things, or concepts is called an
object.
The characteristics a classes
• Attributes
• Operations
19
Class & Object
The notation for a class is a box with three sections.
You can, also show a class without its attributes or its operations.
20
Class & Object
The naming convention for classes are as follow:
21
Class & Object
The notation for an object is the same in basic form as that for a
class. There are three differences between the notations, which
are:
• Within the top section of the class box, the name of the class to
which the object belongs appears after a colon. The object may
have a name, which appears before the colon, or it may be
anonymous, in which case nothing appears before the colon.
• The contents of the top compartment are underlined for an
object.
• Each attribute defined for the given class has a specific value
for each object that belongs to that class.
22
Class & Object
23
Thank You
Any Questions
24