SlideShare a Scribd company logo
Lecture 13

 The Object
 An object can be defined as a tangible entity that exhibits
some well defined behavior. An object represents an
individual, identifiable item, unit, or entity, either real or
abstract, with a well defined role in the problem domain.
 The Class
 The template of an object. A class specifies an interface and
defines an implementation. The interface primarily consists
of the declaration of all the operations applicable to
instances of this class. The implementation of a class
primarily consists of the implementation of all the
operations defined in the interface of the class
Object Oriented Analysis and
Design

 Identity - An Identity can be sub-classed, to include
postal and email addresses, telephone numbers, images of
faces and logos, and so on.
 State - The state of an object encompasses all of the
properties of the object and their current values.
 Behavior - Behavior is how an object acts and reacts in
terms of its state changes and message passing. The
behavior of an object is completely defined by its actions.
An Object

 The object model presents a static view of the system
and illustrates how different objects collaborate with
one another through patterns of interaction.
 Inheritance Relationship
 Aggregation and Composition Relationship
 Association Relationship
Relationship Among Objects

 Inheritance defines a “kind of” hierarchy among classes.
By inheritance, we specify generalization/specialization
relationship among objects. In this relationship, a class
(called the subclass) shares the structure and behavior
defined in another class (called the superclass). A subclass
augments or redefines the existing structure and behavior
of its superclass. By classifying objects into groups of
related abstractions, we come to explicitly distinguish the
common and distinct properties of different objects,
which further help us to master their inherent complexity.
Identifying the hierarchy within a complex system
requires the discovery of patterns among many objects.
Inheritance Relationship

 The aggregation relationship defines part-of
structure among objects. When object A is part of the
state of object B, A is said to be contained by B. There
are some tradeoffs between aggregation and
association relationships. Aggregation reduces the
number of objects that must be visible at the level of
enclosing objects and may lead to undesirable tighter
coupling among objects.
Aggregation and Composition

 In an association relationship, when object A “uses”
object B, then A may send messages to B. The
relationship defines visibility among objects.
Association Relationship

More Related Content

PPTX
Object Oriented Principles
DOC
Domain vs. (Data) Type, Class vs. Relation
PDF
Matters of State
PPT
Lecture#01, object orientation
PPTX
When to use composite primary keys
PDF
UML-Advanced Software Engineering
PDF
Introduction to UML
PPT
Chapter3
Object Oriented Principles
Domain vs. (Data) Type, Class vs. Relation
Matters of State
Lecture#01, object orientation
When to use composite primary keys
UML-Advanced Software Engineering
Introduction to UML
Chapter3

What's hot (19)

PPTX
Object oriented analysis and design using uml classes and objects
PPTX
Class and object 1
PPT
Object modeling
PDF
Software Design Patterns - An Overview
PPTX
Behavioural design pattern
PPT
Object oriented concepts
PPT
Relations Class Diagram
PPT
Object modeling
PPT
java Oops.ppt
PPT
Object Concepts Chapter 6
PPTX
Entity Relationship Diagram presentation
PPTX
Object oriented database model
PPT
O ops concepts
PPT
OMD chapter 2 Class modelling
PPTX
Object oriented database model
PDF
Classes and Objects
PDF
OOMD UNIT2.pdf
DOC
Week1 dq2
Object oriented analysis and design using uml classes and objects
Class and object 1
Object modeling
Software Design Patterns - An Overview
Behavioural design pattern
Object oriented concepts
Relations Class Diagram
Object modeling
java Oops.ppt
Object Concepts Chapter 6
Entity Relationship Diagram presentation
Object oriented database model
O ops concepts
OMD chapter 2 Class modelling
Object oriented database model
Classes and Objects
OOMD UNIT2.pdf
Week1 dq2
Ad

Viewers also liked (12)

PPTX
Lecture 05
PPT
C++ polymorphism
PPT
Polymorphism
PDF
Constructor & destructor
PPT
14 operator overloading
PPT
Switch statements in Java
PPT
Object Oriented Relationships
PPT
Inheritance, Object Oriented Programming
PPTX
pointers,virtual functions and polymorphism
PPT
Inheritance and Polymorphism
PPTX
polymorphism
PPT
Object Oriented Programming Concepts
Lecture 05
C++ polymorphism
Polymorphism
Constructor & destructor
14 operator overloading
Switch statements in Java
Object Oriented Relationships
Inheritance, Object Oriented Programming
pointers,virtual functions and polymorphism
Inheritance and Polymorphism
polymorphism
Object Oriented Programming Concepts
Ad

Similar to Lecture 13 (20)

PPTX
Object diagram
PPTX
CHAPTER 3 oop with programming java language
PDF
Major and Minor Elements of Object Model
PPTX
PPTX
01. design pattern
PPTX
Object oriented programming concept
PDF
Data Modeling and Database Design 2nd Edition by Umanath Scamell Solution Manual
PDF
System Desigren_OOD-9asdasdasdsasdasdasd.pdf
PPT
PPT
Slide 5 Class Diagram
PDF
PROPERTIES OF RELATIONSHIPS AMONG OBJECTS IN OBJECT-ORIENTED SOFTWARE DESIGN
PPT
Ch 5 O O Data Modeling Class
PPTX
INTRODUCTION AND BASIC CONCEPT OF OOAD.pptx
PPT
Object oriented programming in C++ programming language
PPT
Introduction to software engineering in data science.ppt
PPT
Object oriented programming language in software engineering
PPT
An Evolution of UML projects.and also what is project
PPTX
Association, aggregation and composition.pptx
PDF
Session13-Class Diagram (1).pdf
PPTX
Unified Modeling Language and Examples .pptx
Object diagram
CHAPTER 3 oop with programming java language
Major and Minor Elements of Object Model
01. design pattern
Object oriented programming concept
Data Modeling and Database Design 2nd Edition by Umanath Scamell Solution Manual
System Desigren_OOD-9asdasdasdsasdasdasd.pdf
Slide 5 Class Diagram
PROPERTIES OF RELATIONSHIPS AMONG OBJECTS IN OBJECT-ORIENTED SOFTWARE DESIGN
Ch 5 O O Data Modeling Class
INTRODUCTION AND BASIC CONCEPT OF OOAD.pptx
Object oriented programming in C++ programming language
Introduction to software engineering in data science.ppt
Object oriented programming language in software engineering
An Evolution of UML projects.and also what is project
Association, aggregation and composition.pptx
Session13-Class Diagram (1).pdf
Unified Modeling Language and Examples .pptx

More from Rana Ali (14)

PPTX
PPTX
Lecture 14
PPTX
Lecture 12
PPTX
Lecture 11
PPTX
Lecture 10
PPTX
Lecture 09
PPTX
Lecture 08
PPTX
Lecture 07
PPTX
Lecture 06
PPTX
Lecture 04
PPTX
Lecture 03
PPTX
Lecture 02
PPTX
Lecture 01
PPTX
Lecture 15
Lecture 14
Lecture 12
Lecture 11
Lecture 10
Lecture 09
Lecture 08
Lecture 07
Lecture 06
Lecture 04
Lecture 03
Lecture 02
Lecture 01
Lecture 15

Lecture 13

  • 2.   The Object  An object can be defined as a tangible entity that exhibits some well defined behavior. An object represents an individual, identifiable item, unit, or entity, either real or abstract, with a well defined role in the problem domain.  The Class  The template of an object. A class specifies an interface and defines an implementation. The interface primarily consists of the declaration of all the operations applicable to instances of this class. The implementation of a class primarily consists of the implementation of all the operations defined in the interface of the class Object Oriented Analysis and Design
  • 3.   Identity - An Identity can be sub-classed, to include postal and email addresses, telephone numbers, images of faces and logos, and so on.  State - The state of an object encompasses all of the properties of the object and their current values.  Behavior - Behavior is how an object acts and reacts in terms of its state changes and message passing. The behavior of an object is completely defined by its actions. An Object
  • 4.   The object model presents a static view of the system and illustrates how different objects collaborate with one another through patterns of interaction.  Inheritance Relationship  Aggregation and Composition Relationship  Association Relationship Relationship Among Objects
  • 5.   Inheritance defines a “kind of” hierarchy among classes. By inheritance, we specify generalization/specialization relationship among objects. In this relationship, a class (called the subclass) shares the structure and behavior defined in another class (called the superclass). A subclass augments or redefines the existing structure and behavior of its superclass. By classifying objects into groups of related abstractions, we come to explicitly distinguish the common and distinct properties of different objects, which further help us to master their inherent complexity. Identifying the hierarchy within a complex system requires the discovery of patterns among many objects. Inheritance Relationship
  • 6.   The aggregation relationship defines part-of structure among objects. When object A is part of the state of object B, A is said to be contained by B. There are some tradeoffs between aggregation and association relationships. Aggregation reduces the number of objects that must be visible at the level of enclosing objects and may lead to undesirable tighter coupling among objects. Aggregation and Composition
  • 7.   In an association relationship, when object A “uses” object B, then A may send messages to B. The relationship defines visibility among objects. Association Relationship