Re: Aggregation vs. composition
From: BarryNL (barry_at_nospam.nl)
Date: 01/26/04
- Next message: BarryNL: "Re: Aggregation vs. composition"
- Previous message: hiwa: "Re: Convert regex -> wildcards"
- In reply to: Rick Osborn: "Aggregation vs. composition"
- Next in thread: nos: "Re: Aggregation vs. composition"
- Reply: nos: "Re: Aggregation vs. composition"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
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.
- Next message: BarryNL: "Re: Aggregation vs. composition"
- Previous message: hiwa: "Re: Convert regex -> wildcards"
- In reply to: Rick Osborn: "Aggregation vs. composition"
- Next in thread: nos: "Re: Aggregation vs. composition"
- Reply: nos: "Re: Aggregation vs. composition"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|