Advertisement

Relationships Between Objects

  • Jacquie Barker

Abstract

As we saw in Chapter 4, any two objects can have a ‘fleeting relationship’ based on the fact that they exchange messages, in the same way that two strangers passing on the street might say ’Hello!’ to one another. We call such relationships between objects behavioral relationships, because they arise out of the behaviors, or actions, taken by one object ‘X’ relative to another object ‘Y’. With behavioral relationships, object ‘X’ is either temporarily handed a reference to object ‘Y’ as an argument in a method call, or temporarily requests a handle on ‘Y’ from another object ‘Z’. However, the emphasis is on temporary: when X is finished communicating with Y, object X often discards the reference to Y.

Keywords

Base Class Class Hierarchy Method Signature Student Class Root Class 
These keywords were added by machine and not by the authors. This process is experimental and the keywords may be updated as the learning algorithm improves.

Preview

Unable to display preview. Download preview PDF.

Unable to display preview. Download preview PDF.

Copyright information

© Jacquie Barker 2000

Authors and Affiliations

  • Jacquie Barker

There are no affiliations available

Personalised recommendations