SlideShare ist ein Scribd-Unternehmen logo
1 von 12
Identifying object
relationships ,attributes ,
        methods,
Types of relationships
• Association
• Super-sub structure (generalization
  hierarchy)
• Aggregation and part of a structure
Association
• Represents physical or conceptual
  connection between 2 or more objects
• Binary association
  – Line connecting 2 classes
• Ternary and higher order association
  – Diamond connecting to a class symbol by line
• Association name is written above or
  below the name
• Includes name of the role
Cont..
• Identifying association
• Common association pattern
• Eliminating unnecessary association
Identifying association
• Begins by analyzing the interaction among
  classes
• Ask following questions
  – Is the class capable of fulfilling the required task by
    itself
  – If not, what does it need
  – From what other class can it acquire what it needs
• Guideline
  – Dependency between 2 or more classes
     • Association corresponds to verb or prepositional phrase
  – Reference from one class to another
     • Implicit or taken from knowledge
Common association pattern
• Location association
  – Ex:      next to, part of , contained in
• Communication association
  – Ex :talk to, order to

                                        operator
          customer



                            order
Eliminate unnecessary association
• Implementation association
   – Defer implementation specific association to design phase
   – Not concerned about relationship among business objects
• Ternary association
   – Complicate the representation
   – Req
      • Restate ternary association to binary association
• Directed actions or derived association
   – Can be defined in terms of other association
   – Leads to redundancy
   – Ex:
                          Grant parent of
                raman                          abi


              parent of                     parent of
     raman                     murugan                      abi
Super-sub class relationships
• Generalization hierarchy
• Represents the inheritance relationship bw
  related class
• Parent class
  – Super class
  – Ancestor
Guidelines to identify
Super-sub class relationships (cont..)
 – Top down
    • Look for noun phrases composed of various adjectives in a
      class name
        – Ex: youth member, adult member
 – Bottom up
    • Look for classes with similar attribute and methods
 – Reusability
    • Move attribute and behavior as high as possible in the
      hierarchy
 – Multiple inheritance
    • Avoid excessive use of multiple inheritance. Leads to
      complications
A part of realtionships-aggregation
• Represents a situation where a class
  consists of several component classes
• Properties
  – Transitivity
     • A is part of B , B is part of C, then A is part of C
  – Antisymmetry
     • A is part of B, but B is not part of A
Representation of aggregation
• Container and collection
  – hollow diamond
• Composition
  – Solid diamond
  – Ex:
     • Car and its parts
A part of relationship pattern
• Assembly
  – French onion soup is an assembly of inion ,
    butter, floor,bread
• Container                       house



• Collection          furniture       appliances
  – Team and player

Weitere ähnliche Inhalte

Was ist angesagt?

Object oriented-systems-development-life-cycle ppt
Object oriented-systems-development-life-cycle pptObject oriented-systems-development-life-cycle ppt
Object oriented-systems-development-life-cycle ppt
Kunal Kishor Nirala
 
Object oriented analysis
Object oriented analysisObject oriented analysis
Object oriented analysis
Mahesh Bhalerao
 
Unit 3 object analysis-classification
Unit 3 object analysis-classificationUnit 3 object analysis-classification
Unit 3 object analysis-classification
gopal10scs185
 
Unit 5 testing -software quality assurance
Unit 5  testing -software quality assuranceUnit 5  testing -software quality assurance
Unit 5 testing -software quality assurance
gopal10scs185
 
Uml Presentation
Uml PresentationUml Presentation
Uml Presentation
mewaseem
 

Was ist angesagt? (20)

Object oriented-systems-development-life-cycle ppt
Object oriented-systems-development-life-cycle pptObject oriented-systems-development-life-cycle ppt
Object oriented-systems-development-life-cycle ppt
 
Ooad
OoadOoad
Ooad
 
Chapter 8 ooad
Chapter  8 ooadChapter  8 ooad
Chapter 8 ooad
 
Object oriented analysis
Object oriented analysisObject oriented analysis
Object oriented analysis
 
Analysis modeling
Analysis modelingAnalysis modeling
Analysis modeling
 
Java beans
Java beansJava beans
Java beans
 
Unit 3 object analysis-classification
Unit 3 object analysis-classificationUnit 3 object analysis-classification
Unit 3 object analysis-classification
 
Unit 5 testing -software quality assurance
Unit 5  testing -software quality assuranceUnit 5  testing -software quality assurance
Unit 5 testing -software quality assurance
 
Object Oriented Relationships
Object Oriented RelationshipsObject Oriented Relationships
Object Oriented Relationships
 
Uml class-diagram
Uml class-diagramUml class-diagram
Uml class-diagram
 
Use case Diagram and Sequence Diagram
Use case Diagram and Sequence DiagramUse case Diagram and Sequence Diagram
Use case Diagram and Sequence Diagram
 
Ooad
OoadOoad
Ooad
 
Analysis modeling
Analysis modelingAnalysis modeling
Analysis modeling
 
UNIFIED MODELING LANGUAGE
UNIFIED MODELING LANGUAGEUNIFIED MODELING LANGUAGE
UNIFIED MODELING LANGUAGE
 
Class diagrams
Class diagramsClass diagrams
Class diagrams
 
Software Engineering : Requirement Analysis & Specification
Software Engineering : Requirement Analysis & SpecificationSoftware Engineering : Requirement Analysis & Specification
Software Engineering : Requirement Analysis & Specification
 
Object diagram
Object diagramObject diagram
Object diagram
 
Slice Based testing and Object Oriented Testing
Slice Based testing and Object Oriented TestingSlice Based testing and Object Oriented Testing
Slice Based testing and Object Oriented Testing
 
Uml Presentation
Uml PresentationUml Presentation
Uml Presentation
 
Ooad
OoadOoad
Ooad
 

Andere mochten auch

Unit 5 usability and satisfaction test
Unit 5 usability and satisfaction testUnit 5 usability and satisfaction test
Unit 5 usability and satisfaction test
gopal10scs185
 
Object and class relationships
Object and class relationshipsObject and class relationships
Object and class relationships
Pooja mittal
 
Object Oriented Design in Software Engineering SE12
Object Oriented Design in Software Engineering SE12Object Oriented Design in Software Engineering SE12
Object Oriented Design in Software Engineering SE12
koolkampus
 

Andere mochten auch (18)

Unit 5 usability and satisfaction test
Unit 5 usability and satisfaction testUnit 5 usability and satisfaction test
Unit 5 usability and satisfaction test
 
Object Oriented Design
Object Oriented DesignObject Oriented Design
Object Oriented Design
 
Ooad
OoadOoad
Ooad
 
association of attributes
association of attributesassociation of attributes
association of attributes
 
Java: Class Design Examples
Java: Class Design ExamplesJava: Class Design Examples
Java: Class Design Examples
 
Object and class relationships
Object and class relationshipsObject and class relationships
Object and class relationships
 
Unit 3
Unit 3Unit 3
Unit 3
 
Object Oriented Approach for Software Development
Object Oriented Approach for Software DevelopmentObject Oriented Approach for Software Development
Object Oriented Approach for Software Development
 
Object modeling
Object modelingObject modeling
Object modeling
 
Use Case diagram-UML diagram-1
Use Case diagram-UML diagram-1Use Case diagram-UML diagram-1
Use Case diagram-UML diagram-1
 
Object Oriented Design Concept
Object Oriented Design ConceptObject Oriented Design Concept
Object Oriented Design Concept
 
Types of UML diagrams
Types of UML diagramsTypes of UML diagrams
Types of UML diagrams
 
Object Oriented Design in Software Engineering SE12
Object Oriented Design in Software Engineering SE12Object Oriented Design in Software Engineering SE12
Object Oriented Design in Software Engineering SE12
 
Lecture04- Use Case Diagrams
Lecture04- Use Case DiagramsLecture04- Use Case Diagrams
Lecture04- Use Case Diagrams
 
A PowerPoint Presentation On Superstructure
A PowerPoint Presentation On SuperstructureA PowerPoint Presentation On Superstructure
A PowerPoint Presentation On Superstructure
 
Object Oriented Design Patterns for PHP
Object Oriented Design Patterns for PHPObject Oriented Design Patterns for PHP
Object Oriented Design Patterns for PHP
 
Notes 2D-Transformation Unit 2 Computer graphics
Notes 2D-Transformation Unit 2 Computer graphicsNotes 2D-Transformation Unit 2 Computer graphics
Notes 2D-Transformation Unit 2 Computer graphics
 
Noun phrases
Noun phrasesNoun phrases
Noun phrases
 

Ähnlich wie Unt 3 attributes, methods, relationships-1

Unit 3 attributes, methods, relationships
Unit 3 attributes, methods, relationshipsUnit 3 attributes, methods, relationships
Unit 3 attributes, methods, relationships
gopal10scs185
 
Unit 3 attributes, methods, relationships
Unit 3 attributes, methods, relationshipsUnit 3 attributes, methods, relationships
Unit 3 attributes, methods, relationships
gopal10scs185
 
TypeDB Academy | Modelling Principles
TypeDB Academy | Modelling PrinciplesTypeDB Academy | Modelling Principles
TypeDB Academy | Modelling Principles
Vaticle
 
Ontology Engineering: ontology construction I
Ontology Engineering: ontology construction IOntology Engineering: ontology construction I
Ontology Engineering: ontology construction I
Guus Schreiber
 

Ähnlich wie Unt 3 attributes, methods, relationships-1 (11)

Unit 3 attributes, methods, relationships
Unit 3 attributes, methods, relationshipsUnit 3 attributes, methods, relationships
Unit 3 attributes, methods, relationships
 
Unit 3 attributes, methods, relationships
Unit 3 attributes, methods, relationshipsUnit 3 attributes, methods, relationships
Unit 3 attributes, methods, relationships
 
TypeDB Academy | Modelling Principles
TypeDB Academy | Modelling PrinciplesTypeDB Academy | Modelling Principles
TypeDB Academy | Modelling Principles
 
Grakn academy | Knowledge Modelling Principles
Grakn academy | Knowledge Modelling PrinciplesGrakn academy | Knowledge Modelling Principles
Grakn academy | Knowledge Modelling Principles
 
DBMS Entity Relationship Diagrammmm.pptx
DBMS Entity Relationship Diagrammmm.pptxDBMS Entity Relationship Diagrammmm.pptx
DBMS Entity Relationship Diagrammmm.pptx
 
Polymorphism
PolymorphismPolymorphism
Polymorphism
 
Ontology Engineering: ontology construction I
Ontology Engineering: ontology construction IOntology Engineering: ontology construction I
Ontology Engineering: ontology construction I
 
UML-class_diagram.ppt
UML-class_diagram.pptUML-class_diagram.ppt
UML-class_diagram.ppt
 
UML-class diagram for beginners to adance.ppt
UML-class diagram for beginners to adance.pptUML-class diagram for beginners to adance.ppt
UML-class diagram for beginners to adance.ppt
 
07 intro2 oop
07 intro2 oop07 intro2 oop
07 intro2 oop
 
Database design
Database designDatabase design
Database design
 

Mehr von gopal10scs185 (20)

Os5
Os5Os5
Os5
 
Os4
Os4Os4
Os4
 
Os1
Os1Os1
Os1
 
Os8
Os8Os8
Os8
 
Os8
Os8Os8
Os8
 
Os7
Os7Os7
Os7
 
Os6
Os6Os6
Os6
 
Os4
Os4Os4
Os4
 
Os3
Os3Os3
Os3
 
Os2
Os2Os2
Os2
 
Unit4 desiging classes
Unit4 desiging classesUnit4 desiging classes
Unit4 desiging classes
 
Unit three identifying actors
Unit three  identifying actorsUnit three  identifying actors
Unit three identifying actors
 
Unit 5 testing
Unit 5 testingUnit 5 testing
Unit 5 testing
 
Unit 5
Unit 5Unit 5
Unit 5
 
Unit 5 usability and satisfaction test
Unit 5 usability and satisfaction testUnit 5 usability and satisfaction test
Unit 5 usability and satisfaction test
 
Unit 5 testing -software quality assurance
Unit 5  testing -software quality assuranceUnit 5  testing -software quality assurance
Unit 5 testing -software quality assurance
 
Unit 4
Unit 4Unit 4
Unit 4
 
Unit 4 designing classes
Unit 4  designing classesUnit 4  designing classes
Unit 4 designing classes
 
Unit 3
Unit 3Unit 3
Unit 3
 
Design rule 31
Design rule 31Design rule 31
Design rule 31
 

Kürzlich hochgeladen

+971565801893>>SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHAB...
+971565801893>>SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHAB...+971565801893>>SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHAB...
+971565801893>>SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHAB...
Health
 

Kürzlich hochgeladen (20)

2k Shots ≽ 9205541914 ≼ Call Girls In Sheikh Sarai (Delhi)
2k Shots ≽ 9205541914 ≼ Call Girls In Sheikh Sarai (Delhi)2k Shots ≽ 9205541914 ≼ Call Girls In Sheikh Sarai (Delhi)
2k Shots ≽ 9205541914 ≼ Call Girls In Sheikh Sarai (Delhi)
 
JORNADA 6 LIGA MURO 2024TUXTEPECOAXACA.pdf
JORNADA 6 LIGA MURO 2024TUXTEPECOAXACA.pdfJORNADA 6 LIGA MURO 2024TUXTEPECOAXACA.pdf
JORNADA 6 LIGA MURO 2024TUXTEPECOAXACA.pdf
 
Exploring Euro Cup 2024 Host Cities in Germany Top Attractions and Accommodat...
Exploring Euro Cup 2024 Host Cities in Germany Top Attractions and Accommodat...Exploring Euro Cup 2024 Host Cities in Germany Top Attractions and Accommodat...
Exploring Euro Cup 2024 Host Cities in Germany Top Attractions and Accommodat...
 
Netherlands Players expected to miss UEFA Euro 2024 due to injury.docx
Netherlands Players expected to miss UEFA Euro 2024 due to injury.docxNetherlands Players expected to miss UEFA Euro 2024 due to injury.docx
Netherlands Players expected to miss UEFA Euro 2024 due to injury.docx
 
European Football Icons that Missed Opportunities at UEFA Euro 2024.docx
European Football Icons that Missed Opportunities at UEFA Euro 2024.docxEuropean Football Icons that Missed Opportunities at UEFA Euro 2024.docx
European Football Icons that Missed Opportunities at UEFA Euro 2024.docx
 
Austria vs France Austria Euro 2024 squad Ralf Rangnick's full team ahead of ...
Austria vs France Austria Euro 2024 squad Ralf Rangnick's full team ahead of ...Austria vs France Austria Euro 2024 squad Ralf Rangnick's full team ahead of ...
Austria vs France Austria Euro 2024 squad Ralf Rangnick's full team ahead of ...
 
Muzaffarpur Call Girls 🥰 8617370543 Service Offer VIP Hot Model
Muzaffarpur Call Girls 🥰 8617370543 Service Offer VIP Hot ModelMuzaffarpur Call Girls 🥰 8617370543 Service Offer VIP Hot Model
Muzaffarpur Call Girls 🥰 8617370543 Service Offer VIP Hot Model
 
Slovenia Vs Serbia Eurovision odds Slovenia have top.docx
Slovenia Vs Serbia Eurovision odds Slovenia have top.docxSlovenia Vs Serbia Eurovision odds Slovenia have top.docx
Slovenia Vs Serbia Eurovision odds Slovenia have top.docx
 
Personal Brand Exploration - By Bradley Dennis
Personal Brand Exploration - By Bradley DennisPersonal Brand Exploration - By Bradley Dennis
Personal Brand Exploration - By Bradley Dennis
 
Ramban Escorts ☎️8617697112 Starting From 5K to 15K High Profile Escorts In...
Ramban  Escorts ☎️8617697112  Starting From 5K to 15K High Profile Escorts In...Ramban  Escorts ☎️8617697112  Starting From 5K to 15K High Profile Escorts In...
Ramban Escorts ☎️8617697112 Starting From 5K to 15K High Profile Escorts In...
 
Italy vs Albania Italy Euro 2024 squad Luciano Spalletti's full team ahead of...
Italy vs Albania Italy Euro 2024 squad Luciano Spalletti's full team ahead of...Italy vs Albania Italy Euro 2024 squad Luciano Spalletti's full team ahead of...
Italy vs Albania Italy Euro 2024 squad Luciano Spalletti's full team ahead of...
 
Spain Vs Italy Spain to be banned from participating in Euro 2024.docx
Spain Vs Italy Spain to be banned from participating in Euro 2024.docxSpain Vs Italy Spain to be banned from participating in Euro 2024.docx
Spain Vs Italy Spain to be banned from participating in Euro 2024.docx
 
Unveiling the Mystery of Main Bazar Chart
Unveiling the Mystery of Main Bazar ChartUnveiling the Mystery of Main Bazar Chart
Unveiling the Mystery of Main Bazar Chart
 
Slovenia Vs Serbia UEFA Euro 2024 Fixture Guide Every Fixture Detailed.docx
Slovenia Vs Serbia UEFA Euro 2024 Fixture Guide Every Fixture Detailed.docxSlovenia Vs Serbia UEFA Euro 2024 Fixture Guide Every Fixture Detailed.docx
Slovenia Vs Serbia UEFA Euro 2024 Fixture Guide Every Fixture Detailed.docx
 
Who Is Emmanuel Katto Uganda? His Career, personal life etc.
Who Is Emmanuel Katto Uganda? His Career, personal life etc.Who Is Emmanuel Katto Uganda? His Career, personal life etc.
Who Is Emmanuel Katto Uganda? His Career, personal life etc.
 
+971565801893>>SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHAB...
+971565801893>>SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHAB...+971565801893>>SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHAB...
+971565801893>>SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHAB...
 
Sector 62, Noida Call girls :8448380779 Model Escorts | 100% verified
Sector 62, Noida Call girls :8448380779 Model Escorts | 100% verifiedSector 62, Noida Call girls :8448380779 Model Escorts | 100% verified
Sector 62, Noida Call girls :8448380779 Model Escorts | 100% verified
 
Technical Data | Sig Sauer Easy6 BDX 1-6x24 | Optics Trade
Technical Data | Sig Sauer Easy6 BDX 1-6x24 | Optics TradeTechnical Data | Sig Sauer Easy6 BDX 1-6x24 | Optics Trade
Technical Data | Sig Sauer Easy6 BDX 1-6x24 | Optics Trade
 
Hire 💕 8617697112 Kasauli Call Girls Service Call Girls Agency
Hire 💕 8617697112 Kasauli Call Girls Service Call Girls AgencyHire 💕 8617697112 Kasauli Call Girls Service Call Girls Agency
Hire 💕 8617697112 Kasauli Call Girls Service Call Girls Agency
 
Cricket Api Solution.pdfCricket Api Solution.pdf
Cricket Api Solution.pdfCricket Api Solution.pdfCricket Api Solution.pdfCricket Api Solution.pdf
Cricket Api Solution.pdfCricket Api Solution.pdf
 

Unt 3 attributes, methods, relationships-1

  • 2. Types of relationships • Association • Super-sub structure (generalization hierarchy) • Aggregation and part of a structure
  • 3. Association • Represents physical or conceptual connection between 2 or more objects • Binary association – Line connecting 2 classes • Ternary and higher order association – Diamond connecting to a class symbol by line • Association name is written above or below the name • Includes name of the role
  • 4. Cont.. • Identifying association • Common association pattern • Eliminating unnecessary association
  • 5. Identifying association • Begins by analyzing the interaction among classes • Ask following questions – Is the class capable of fulfilling the required task by itself – If not, what does it need – From what other class can it acquire what it needs • Guideline – Dependency between 2 or more classes • Association corresponds to verb or prepositional phrase – Reference from one class to another • Implicit or taken from knowledge
  • 6. Common association pattern • Location association – Ex: next to, part of , contained in • Communication association – Ex :talk to, order to operator customer order
  • 7. Eliminate unnecessary association • Implementation association – Defer implementation specific association to design phase – Not concerned about relationship among business objects • Ternary association – Complicate the representation – Req • Restate ternary association to binary association • Directed actions or derived association – Can be defined in terms of other association – Leads to redundancy – Ex: Grant parent of raman abi parent of parent of raman murugan abi
  • 8. Super-sub class relationships • Generalization hierarchy • Represents the inheritance relationship bw related class • Parent class – Super class – Ancestor
  • 9. Guidelines to identify Super-sub class relationships (cont..) – Top down • Look for noun phrases composed of various adjectives in a class name – Ex: youth member, adult member – Bottom up • Look for classes with similar attribute and methods – Reusability • Move attribute and behavior as high as possible in the hierarchy – Multiple inheritance • Avoid excessive use of multiple inheritance. Leads to complications
  • 10. A part of realtionships-aggregation • Represents a situation where a class consists of several component classes • Properties – Transitivity • A is part of B , B is part of C, then A is part of C – Antisymmetry • A is part of B, but B is not part of A
  • 11. Representation of aggregation • Container and collection – hollow diamond • Composition – Solid diamond – Ex: • Car and its parts
  • 12. A part of relationship pattern • Assembly – French onion soup is an assembly of inion , butter, floor,bread • Container house • Collection furniture appliances – Team and player