Search
   
 
Cars
Car Manufacturers
Awards
Car Body Styles
Famous Cars
Classic Cars
Car Designers
Car Platforms
Technologies
Auto Shows
History of Cars
  The Beginnings of
Ford Motor Company

...It cost USD28,000 MORE»


History of the BMW 3 Series
Success breeds success MORE»


Internal Combustion Engine
What drives it? MORE»


Is Your Car Safe Enough?

Find out MORE»

Why buy a Hybrid Car?
Advantages and Perks MORE»

Association (object-oriented programming)

In Object-oriented programming, Association defines a relationship between classes of objects which allows one object instance to cause another to perform an action on its behalf.

In generic terms the causation is usually called "sending a message" to the controlled object. Concrete implementation usually requires the requesting object to invoke a method or member function using a reference or pointer to the memory location of the controlled object.

The objects that are related via the association are considered to act in a role with respect to the association, if object's current state in the active situation allows the other associated objects to use the object in the manner specified by the role. A role describes the public aspects of an object with respect to an association.

See also: Aggregation, Inheritance.gffggfgfgfg

01-04-2007 01:32:10
The contents of this article are licensed from Wikipedia.org under the
GNU Free Documentation License. How to see transparent copy