Skip to main content

Relationships Between Objects

  • Chapter
Beginning C# 2008 Objects
  • 543 Accesses

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.

This is a preview of subscription content, log in via an institution to check access.

Access this chapter

Chapter
USD 29.95
Price excludes VAT (USA)
  • Available as PDF
  • Read on any device
  • Instant download
  • Own it forever
eBook
USD 44.99
Price excludes VAT (USA)
  • Available as PDF
  • Read on any device
  • Instant download
  • Own it forever
Softcover Book
USD 59.99
Price excludes VAT (USA)
  • Compact, lightweight edition
  • Dispatched in 3 to 5 business days
  • Free shipping worldwide - see info

Tax calculation will be finalised at checkout

Purchases are for personal use only

Institutional subscriptions

Preview

Unable to display preview. Download preview PDF.

Unable to display preview. Download preview PDF.

Rights and permissions

Reprints 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

Publish with us

Policies and ethics