Win a copy of Design for the Mind this week in the Design forum!
    Bookmark Topic Watch Topic
  • New Topic

Aggregation/Composition code example

 
Jacob Thomas
Ranch Hand
Posts: 51
  • Mark post as helpful
  • send pies
  • Report post to moderator
Hi,

Could anyone please provide a detailed java code example to illustrate the implementaion of Aggregation and Composition? Thanks in advance!!!
 
Vladas Razas
Ranch Hand
Posts: 385
  • Mark post as helpful
  • send pies
  • Report post to moderator
Composition:



Aggregation:
 
Ilja Preuss
author
Sheriff
Posts: 14112
  • Mark post as helpful
  • send pies
  • Report post to moderator
See http://faq.javaranch.com/view?AssociationVsAggregationVsComposition
 
    Bookmark Topic Watch Topic
  • New Topic