• Post Reply Bookmark Topic Watch Topic
  • New Topic

aggregation and segregation in java  RSS feed

 
sitaram irrinki
Ranch Hand
Posts: 158
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
what is aggregation and segregation in java
 
Jeanne Boyarsky
author & internet detective
Sheriff
Posts: 37384
531
Eclipse IDE Java VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Sitaram,
Aggregation is having a bunch of objects in another object. For example, you aggregate a bunch of items in an ArrayList.

Segregation typically deals with separation of concerns. For example, you segregate presentation from the view in MVC.
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!