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

What's hot

Object oriented analysis and design using uml classes and objects
Object oriented analysis and  design using uml  classes and objectsObject oriented analysis and  design using uml  classes and objects
Object oriented analysis and design using uml classes and objects
LikhithaMadddula
 
Class and object 1
Class and object 1Class and object 1
Class and object 1
sajib miha
 
Software Design Patterns - An Overview
Software Design Patterns - An OverviewSoftware Design Patterns - An Overview
Software Design Patterns - An Overview
Farwa Ansari
 
Behavioural design pattern
Behavioural design patternBehavioural design pattern
Behavioural design pattern
Biruk Mamo
 
Object oriented concepts
Object oriented conceptsObject oriented concepts
Object oriented conceptschristradus
 
Relations Class Diagram
Relations Class DiagramRelations Class Diagram
Relations Class Diagram
halwal
 
java Oops.ppt
java Oops.pptjava Oops.ppt
java Oops.ppt
Ranjith Alappadan
 
Object Concepts Chapter 6
Object Concepts Chapter 6Object Concepts Chapter 6
Object Concepts Chapter 6guest7dce97
 
Entity Relationship Diagram presentation
Entity Relationship Diagram presentationEntity Relationship Diagram presentation
Entity Relationship Diagram presentationSopov Chan
 
Object oriented database model
Object oriented database modelObject oriented database model
Object oriented database modelJanecatalla
 
OMD chapter 2 Class modelling
 OMD  chapter 2 Class modelling OMD  chapter 2 Class modelling
OMD chapter 2 Class modelling
jayashri kolekar
 
Object oriented database model
Object oriented database modelObject oriented database model
Object oriented database modelPAQUIAAIZEL
 
Classes and Objects
Classes and Objects  Classes and Objects
Classes and Objects
yndaravind
 
OOMD UNIT2.pdf
OOMD UNIT2.pdfOOMD UNIT2.pdf
OOMD UNIT2.pdf
SadikAmin3
 
Week1 dq2
Week1 dq2Week1 dq2
Week1 dq2
amaxwell2012
 

What's hot (19)

Object oriented analysis and design using uml classes and objects
Object oriented analysis and  design using uml  classes and objectsObject oriented analysis and  design using uml  classes and objects
Object oriented analysis and design using uml classes and objects
 
Class and object 1
Class and object 1Class and object 1
Class and object 1
 
Object modeling
Object modelingObject modeling
Object modeling
 
Software Design Patterns - An Overview
Software Design Patterns - An OverviewSoftware Design Patterns - An Overview
Software Design Patterns - An Overview
 
Behavioural design pattern
Behavioural design patternBehavioural design pattern
Behavioural design pattern
 
Object oriented concepts
Object oriented conceptsObject oriented concepts
Object oriented concepts
 
Relations Class Diagram
Relations Class DiagramRelations Class Diagram
Relations Class Diagram
 
Object modeling
Object modelingObject modeling
Object modeling
 
java Oops.ppt
java Oops.pptjava Oops.ppt
java Oops.ppt
 
Object Concepts Chapter 6
Object Concepts Chapter 6Object Concepts Chapter 6
Object Concepts Chapter 6
 
Entity Relationship Diagram presentation
Entity Relationship Diagram presentationEntity Relationship Diagram presentation
Entity Relationship Diagram presentation
 
Object oriented database model
Object oriented database modelObject oriented database model
Object oriented database model
 
UML Notations
UML NotationsUML Notations
UML Notations
 
O ops concepts
O ops conceptsO ops concepts
O ops concepts
 
OMD chapter 2 Class modelling
 OMD  chapter 2 Class modelling OMD  chapter 2 Class modelling
OMD chapter 2 Class modelling
 
Object oriented database model
Object oriented database modelObject oriented database model
Object oriented database model
 
Classes and Objects
Classes and Objects  Classes and Objects
Classes and Objects
 
OOMD UNIT2.pdf
OOMD UNIT2.pdfOOMD UNIT2.pdf
OOMD UNIT2.pdf
 
Week1 dq2
Week1 dq2Week1 dq2
Week1 dq2
 

Viewers also liked

Lecture 05
Lecture 05Lecture 05
Lecture 05Rana Ali
 
Polymorphism
PolymorphismPolymorphism
Polymorphism
Nilesh Dalvi
 
14 operator overloading
14 operator overloading14 operator overloading
14 operator overloading
Docent Education
 
Switch statements in Java
Switch statements  in JavaSwitch statements  in Java
Switch statements in JavaJin Castor
 
Object Oriented Relationships
Object Oriented RelationshipsObject Oriented Relationships
Object Oriented Relationships
Taher Barodawala
 
Inheritance, Object Oriented Programming
Inheritance, Object Oriented ProgrammingInheritance, Object Oriented Programming
Inheritance, Object Oriented Programming
Arslan Waseem
 
pointers,virtual functions and polymorphism
pointers,virtual functions and polymorphismpointers,virtual functions and polymorphism
pointers,virtual functions and polymorphism
rattaj
 
Inheritance and Polymorphism
Inheritance and PolymorphismInheritance and Polymorphism
Inheritance and Polymorphism
BG Java EE Course
 
polymorphism
polymorphism polymorphism
polymorphism
Imtiaz Hussain
 
Object Oriented Programming Concepts
Object Oriented Programming ConceptsObject Oriented Programming Concepts
Object Oriented Programming Conceptsthinkphp
 

Viewers also liked (12)

Lecture 05
Lecture 05Lecture 05
Lecture 05
 
C++ polymorphism
C++ polymorphismC++ polymorphism
C++ polymorphism
 
Polymorphism
PolymorphismPolymorphism
Polymorphism
 
Constructor & destructor
Constructor & destructorConstructor & destructor
Constructor & destructor
 
14 operator overloading
14 operator overloading14 operator overloading
14 operator overloading
 
Switch statements in Java
Switch statements  in JavaSwitch statements  in Java
Switch statements in Java
 
Object Oriented Relationships
Object Oriented RelationshipsObject Oriented Relationships
Object Oriented Relationships
 
Inheritance, Object Oriented Programming
Inheritance, Object Oriented ProgrammingInheritance, Object Oriented Programming
Inheritance, Object Oriented Programming
 
pointers,virtual functions and polymorphism
pointers,virtual functions and polymorphismpointers,virtual functions and polymorphism
pointers,virtual functions and polymorphism
 
Inheritance and Polymorphism
Inheritance and PolymorphismInheritance and Polymorphism
Inheritance and Polymorphism
 
polymorphism
polymorphism polymorphism
polymorphism
 
Object Oriented Programming Concepts
Object Oriented Programming ConceptsObject Oriented Programming Concepts
Object Oriented Programming Concepts
 

Similar to Lecture 13

Object diagram
Object diagramObject diagram
Object diagram
Rahul Pola
 
CHAPTER 3 oop with programming java language
CHAPTER 3 oop with programming java languageCHAPTER 3 oop with programming java language
CHAPTER 3 oop with programming java language
TSha7
 
Major and Minor Elements of Object Model
Major and Minor Elements of Object ModelMajor and Minor Elements of Object Model
Major and Minor Elements of Object Model
sohailsaif
 
01. design pattern
01. design pattern01. design pattern
01. design pattern
MD Sayem Ahmed
 
Object oriented programming concept
Object oriented programming conceptObject oriented programming concept
Object oriented programming concept
Pina Parmar
 
Data Modeling and Database Design 2nd Edition by Umanath Scamell Solution Manual
Data Modeling and Database Design 2nd Edition by Umanath Scamell Solution ManualData Modeling and Database Design 2nd Edition by Umanath Scamell Solution Manual
Data Modeling and Database Design 2nd Edition by Umanath Scamell Solution Manual
endokayle
 
Slide 5 Class Diagram
Slide 5 Class DiagramSlide 5 Class Diagram
Slide 5 Class DiagramNiloy Rocker
 
PROPERTIES OF RELATIONSHIPS AMONG OBJECTS IN OBJECT-ORIENTED SOFTWARE DESIGN
PROPERTIES OF RELATIONSHIPS AMONG OBJECTS IN OBJECT-ORIENTED SOFTWARE DESIGNPROPERTIES OF RELATIONSHIPS AMONG OBJECTS IN OBJECT-ORIENTED SOFTWARE DESIGN
PROPERTIES OF RELATIONSHIPS AMONG OBJECTS IN OBJECT-ORIENTED SOFTWARE DESIGN
ijpla
 
Ch 5 O O Data Modeling Class
Ch 5  O O  Data Modeling ClassCh 5  O O  Data Modeling Class
Ch 5 O O Data Modeling Classguest8fdbdd
 
Session13-Class Diagram (1).pdf
Session13-Class Diagram (1).pdfSession13-Class Diagram (1).pdf
Session13-Class Diagram (1).pdf
PeterTran514407
 
L ab # 07
L ab # 07L ab # 07
L ab # 07Mr SMAK
 
Lecture#02, building blocks of uml ASE
Lecture#02, building blocks of uml ASELecture#02, building blocks of uml ASE
Lecture#02, building blocks of uml ASEbabak danyal
 
Entity Relationship Modelling
Entity Relationship ModellingEntity Relationship Modelling
Entity Relationship Modelling
Bhandari Nawaraj
 
SAD02 - Object Orientation
SAD02 - Object OrientationSAD02 - Object Orientation
SAD02 - Object Orientation
Michael Heron
 
Er Modeling
Er ModelingEr Modeling
SE18_Lec 06_Object Oriented Analysis and Design
SE18_Lec 06_Object Oriented Analysis and DesignSE18_Lec 06_Object Oriented Analysis and Design
SE18_Lec 06_Object Oriented Analysis and Design
Amr E. Mohamed
 

Similar to Lecture 13 (20)

Object diagram
Object diagramObject diagram
Object diagram
 
CHAPTER 3 oop with programming java language
CHAPTER 3 oop with programming java languageCHAPTER 3 oop with programming java language
CHAPTER 3 oop with programming java language
 
Major and Minor Elements of Object Model
Major and Minor Elements of Object ModelMajor and Minor Elements of Object Model
Major and Minor Elements of Object Model
 
database
databasedatabase
database
 
01. design pattern
01. design pattern01. design pattern
01. design pattern
 
Object oriented programming concept
Object oriented programming conceptObject oriented programming concept
Object oriented programming concept
 
Data Modeling and Database Design 2nd Edition by Umanath Scamell Solution Manual
Data Modeling and Database Design 2nd Edition by Umanath Scamell Solution ManualData Modeling and Database Design 2nd Edition by Umanath Scamell Solution Manual
Data Modeling and Database Design 2nd Edition by Umanath Scamell Solution Manual
 
Jar chapter 2
Jar chapter 2Jar chapter 2
Jar chapter 2
 
Slide 5 Class Diagram
Slide 5 Class DiagramSlide 5 Class Diagram
Slide 5 Class Diagram
 
PROPERTIES OF RELATIONSHIPS AMONG OBJECTS IN OBJECT-ORIENTED SOFTWARE DESIGN
PROPERTIES OF RELATIONSHIPS AMONG OBJECTS IN OBJECT-ORIENTED SOFTWARE DESIGNPROPERTIES OF RELATIONSHIPS AMONG OBJECTS IN OBJECT-ORIENTED SOFTWARE DESIGN
PROPERTIES OF RELATIONSHIPS AMONG OBJECTS IN OBJECT-ORIENTED SOFTWARE DESIGN
 
Ch 5 O O Data Modeling Class
Ch 5  O O  Data Modeling ClassCh 5  O O  Data Modeling Class
Ch 5 O O Data Modeling Class
 
Session13-Class Diagram (1).pdf
Session13-Class Diagram (1).pdfSession13-Class Diagram (1).pdf
Session13-Class Diagram (1).pdf
 
L ab # 07
L ab # 07L ab # 07
L ab # 07
 
Lecture#02, building blocks of uml ASE
Lecture#02, building blocks of uml ASELecture#02, building blocks of uml ASE
Lecture#02, building blocks of uml ASE
 
Entity Relationship Modelling
Entity Relationship ModellingEntity Relationship Modelling
Entity Relationship Modelling
 
SAD02 - Object Orientation
SAD02 - Object OrientationSAD02 - Object Orientation
SAD02 - Object Orientation
 
Er Modeling
Er ModelingEr Modeling
Er Modeling
 
Ooad
OoadOoad
Ooad
 
Ooad 2
Ooad 2Ooad 2
Ooad 2
 
SE18_Lec 06_Object Oriented Analysis and Design
SE18_Lec 06_Object Oriented Analysis and DesignSE18_Lec 06_Object Oriented Analysis and Design
SE18_Lec 06_Object Oriented Analysis and Design
 

More from Rana Ali

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

More from Rana Ali (14)

Nlp
NlpNlp
Nlp
 
Lecture 14
Lecture 14Lecture 14
Lecture 14
 
Lecture 12
Lecture 12Lecture 12
Lecture 12
 
Lecture 11
Lecture 11Lecture 11
Lecture 11
 
Lecture 10
Lecture 10Lecture 10
Lecture 10
 
Lecture 09
Lecture 09Lecture 09
Lecture 09
 
Lecture 08
Lecture 08Lecture 08
Lecture 08
 
Lecture 07
Lecture 07Lecture 07
Lecture 07
 
Lecture 06
Lecture 06Lecture 06
Lecture 06
 
Lecture 04
Lecture 04Lecture 04
Lecture 04
 
Lecture 03
Lecture 03Lecture 03
Lecture 03
 
Lecture 02
Lecture 02Lecture 02
Lecture 02
 
Lecture 01
Lecture 01Lecture 01
Lecture 01
 
Lecture 15
Lecture 15Lecture 15
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