Object graph: Difference between revisions

Content deleted Content added
mNo edit summary
Examples: Copyedit
Line 12:
==Examples==
For instance, a Car class can compose a Wheel one. In the object graph a Car instance will have up to four links to its wheels, which can be named frontLeft, frontRight, backLeft and backRight.
ExampleAn example of an [[adjacency list]] representation might be something as follows:

c:Car → {frontLeft:Wheel, frontRight:Wheel, backLeft:Wheel, backRight:Wheel}.
 
==See also==