Abstract
As you saw in Chapter 4, any two objects can have a “fleeting relationship” based on the fact that they invoke methods on each other, 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 reference to 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.
Access this chapter
Tax calculation will be finalised at checkout
Purchases are for personal use only
Preview
Unable to display preview. Download preview PDF.
Rights and permissions
Copyright information
© 2008 Grant Palmer and Jacquie Barker
About this chapter
Cite this chapter
(2008). Relationships Between Objects. In: Beginning C# 2008 Objects. Apress. https://doi.org/10.1007/978-1-4302-1087-0_5
Download citation
DOI: https://doi.org/10.1007/978-1-4302-1087-0_5
Publisher Name: Apress
Print ISBN: 978-1-4302-1088-7
Online ISBN: 978-1-4302-1087-0
eBook Packages: Professional and Applied ComputingApress Access BooksProfessional and Applied Computing (R0)