SlideShare a Scribd company logo
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

More Related Content

PPT
Unit 3 attributes, methods, relationships
PPT
PPT
Unit three identifying actors
PPT
Design rule 3
PPT
Unit 5 testing -software quality assurance
PPT
PPT
Unit 3 object analysis-classification
Unit 3 attributes, methods, relationships
Unit three identifying actors
Design rule 3
Unit 5 testing -software quality assurance
Unit 3 object analysis-classification

Similar to Unt 3 attributes, methods, relationships-1 (14)

PPT
Unit 3 attributes, methods, relationships
PDF
Grakn academy | Knowledge Modelling Principles
PPTX
CPP Object Oriented Concepts(OOPS).pptx
PPT
ermodelN in database management system.ppt
PPTX
DBMS Entity Relationship Diagrammmm.pptx
PPTX
Polymorphism
PPT
Ontology Engineering: ontology construction I
PPT
UML-class_diagram.ppt
PPT
cse 355 UML class diagram software engineering.ppt
PPT
UML-class diagram for beginners to adance.ppt
PPTX
07 intro2 oop
PPT
Database design
PPT
UML-class_diagram.ppt diagrams ppt download
PDF
2 DATABASE MANAGEMENT SYSTEMS ENTITY RELATIONSHIPS DIAGRAMR.pdf
Unit 3 attributes, methods, relationships
Grakn academy | Knowledge Modelling Principles
CPP Object Oriented Concepts(OOPS).pptx
ermodelN in database management system.ppt
DBMS Entity Relationship Diagrammmm.pptx
Polymorphism
Ontology Engineering: ontology construction I
UML-class_diagram.ppt
cse 355 UML class diagram software engineering.ppt
UML-class diagram for beginners to adance.ppt
07 intro2 oop
Database design
UML-class_diagram.ppt diagrams ppt download
2 DATABASE MANAGEMENT SYSTEMS ENTITY RELATIONSHIPS DIAGRAMR.pdf
Ad

More from gopal10scs185 (20)

PPTX
Unit4 desiging classes
PPT
Unit 5 testing
PPT
PPT
Unit 5 usability and satisfaction test
PPT
Unit 4 designing classes
PPT
Design rule 31
PPTX
Unit4 desiging classes
PPT
Unit three identifying actors
PPT
Unit 5 testing
PPT
PPT
Unit 5 usability and satisfaction test
Unit4 desiging classes
Unit 5 testing
Unit 5 usability and satisfaction test
Unit 4 designing classes
Design rule 31
Unit4 desiging classes
Unit three identifying actors
Unit 5 testing
Unit 5 usability and satisfaction test
Ad

Recently uploaded (20)

DOCX
North Texas announced as base camps for 2026 FIFA World Cup.docx
PPTX
Sports Writing by SHS Teacher Roel A. Naza
DOCX
FIFA World Cup Semi Final: Lionel Messi one win from crowning glory after Arg...
DOCX
NFL Dublin Who Will Rise as Super Bowl 60 Champs.docx
PPTX
ttttttttttttttttttttttttarget games.pptx
PDF
volleyball lesson.powerpoint presentation
DOCX
NFL Dublin Injury Ends Season for Former Vikings Standout.docx
PDF
FIFA World Cup Semi Final Los Angeles is a Global Soccer Powerhouse for the F...
PPTX
sports performance data analysics for sports
DOCX
NFL Dublin Addison Returns Home To Haunt Pittsburgh.docx
DOCX
FIFA World Cup 2026 Run-Up Just 10 Months Until Kickoff.docx
DOCX
FA Cup Final 2026 Siring: Arne Slot Crit
DOCX
NFL Dublin Labriola on Steelers’ Victory Over the Jaguars.docx
PPTX
Best All-Access Digital Pass me .pptxxxx
PDF
Understanding Volunteering_ A Look at Its True Meaning by David Bennett Gallo...
DOCX
MetLife Stadium Seeks Volunteers for FIFA 2026, Including the Final Match.docx
DOCX
NFL Dublin Vikings Turn to Speed with Tai Felton.docx
PPT
Aboriginals Achievements in Society and Community Development
PDF
Women Rugby World Cup 2025 Tickets: Ireland’s Road to Redemption, Squad Named...
DOCX
NFL London Jets QB Room Dealing with Multiple Injuries.docx
North Texas announced as base camps for 2026 FIFA World Cup.docx
Sports Writing by SHS Teacher Roel A. Naza
FIFA World Cup Semi Final: Lionel Messi one win from crowning glory after Arg...
NFL Dublin Who Will Rise as Super Bowl 60 Champs.docx
ttttttttttttttttttttttttarget games.pptx
volleyball lesson.powerpoint presentation
NFL Dublin Injury Ends Season for Former Vikings Standout.docx
FIFA World Cup Semi Final Los Angeles is a Global Soccer Powerhouse for the F...
sports performance data analysics for sports
NFL Dublin Addison Returns Home To Haunt Pittsburgh.docx
FIFA World Cup 2026 Run-Up Just 10 Months Until Kickoff.docx
FA Cup Final 2026 Siring: Arne Slot Crit
NFL Dublin Labriola on Steelers’ Victory Over the Jaguars.docx
Best All-Access Digital Pass me .pptxxxx
Understanding Volunteering_ A Look at Its True Meaning by David Bennett Gallo...
MetLife Stadium Seeks Volunteers for FIFA 2026, Including the Final Match.docx
NFL Dublin Vikings Turn to Speed with Tai Felton.docx
Aboriginals Achievements in Society and Community Development
Women Rugby World Cup 2025 Tickets: Ireland’s Road to Redemption, Squad Named...
NFL London Jets QB Room Dealing with Multiple Injuries.docx

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