File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
    Bookmark Topic Watch Topic
  • New Topic

Aggregation/Composition code example

 
Jacob Thomas
Ranch Hand
Posts: 51
  • 0
  • 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
  • 0
  • Mark post as helpful
  • send pies
  • Report post to moderator
Composition:



Aggregation:
 
Ilja Preuss
author
Sheriff
Posts: 14112
  • 0
  • Mark post as helpful
  • send pies
  • Report post to moderator
See http://faq.javaranch.com/view?AssociationVsAggregationVsComposition
 
It is sorta covered in the JavaRanch Style Guide.
    Bookmark Topic Watch Topic
  • New Topic