Re: Aggregation vs. composition

From: BarryNL (barry_at_nospam.nl)
Date: 01/26/04


Date: Mon, 26 Jan 2004 11:52:36 +0100

Rick Osborn wrote:
> I got asked at an interview lately if I knew the difference between
> aggregation and composition. We were discussing possible changes to
> a struts application, and how I would modify the code. He then made the
> parallel to A vs C. If I would deisn go to either paradigm.
>
> Not knowing this off the top of my head, he and the team looked
> at me in disgust and walked me out.
>
> I looked this up when I got home, and could do this in design
> discussions, or over iterative revisions. But at moment, off the top
> of my head?
>
> Am I missing the boat, or were they setting the bar a tad high?

Well, it depends what you said you knew before the interview. If you
told them you knew UML, for example, then you should certainly be able
to explain the difference between Agg. & Comp. It's not really standard
Java stuff though. In Java Agg., Comp. and normal 1-M assocs would
probably all be implemented as a Vector or ArrayList, for example.



Relevant Pages

  • Re: Aggregation vs. composition
    ... In Java Agg., Comp. ... sun tutorial has aggregation and composition here ...
    (comp.lang.java.programmer)
  • Re: Any novices using Aebersold?
    ... you remove the comp instrument and you can comp along w/ the head in/out ... but you don't get many choruses to solo on. ... Aebersold there are typically 10 solo choruses. ...
    (rec.music.makers.guitar.jazz)
  • Re: Any novices using Aebersold?
    ... If you pan the one with the head ... you remove the comp instrument and you can comp along w/ the head in/out ... and for a chorus in the middle. ... Or you can play comp during head and then solo in trio form. ...
    (rec.music.makers.guitar.jazz)
  • Re: Any novices using Aebersold?
    ... The drawback is that there's no way to play with just the bass and drums. ... If you pan the one with the head ... you remove the comp instrument and you can comp along w/ the head in/out and for a chorus in the middle. ...
    (rec.music.makers.guitar.jazz)
  • Re: Full Screen problem on Mosaic
    ... If Comp < 5 Then ... I have a diffusion of 16 video channels multicast on my network. ...
    (microsoft.public.windowsmedia.player.web)