Can we replace composition with aggregation?

This is a discussion on Can we replace composition with aggregation? within the C Programming forums, part of the General Programming Boards category; we have implemented a scenario and we used aggregation in it, after some time we realize that use of aggregation ...

  1. #1
    Registered User
    Join Date
    Feb 2013
    Posts
    1

    Can we replace composition with aggregation?

    we have implemented a scenario and we used aggregation in it, after some time we realize that use of aggregation is not a correct choice, now we want to use composition instead of aggregation. Can we replace composition with aggregation? At which phase(s) these changes are required?

  2. #2
    Registered User
    Join Date
    Sep 2006
    Posts
    8,868
    You haven't described the problem you're dealing with. You've described (quite generally) the WAY that you want to deal with the problem.

    Until we know the problem, in detail, we can't make an intelligent comment about which way is best (or better) to use to solve it.

    "The Doctors must see the patient, not just read how they were unsuccessfully treated before."

  3. #3
    Algorithm Dissector iMalc's Avatar
    Join Date
    Dec 2005
    Location
    New Zealand
    Posts
    6,308
    These are clearly not your own words. You're asking us to answer a homework question.
    My homepage
    Advice: Take only as directed - If symptoms persist, please see your debugger

    Linus Torvalds: "But it clearly is the only right way. The fact that everybody else does it some other way only means that they are wrong"

  4. #4
    Master Apprentice phantomotap's Avatar
    Join Date
    Jan 2008
    Posts
    4,339
    At which phase(s) these changes are required?
    Any time after the code is written is sufficient.

    Soma

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Aggregation question
    By SterlingM in forum C++ Programming
    Replies: 7
    Last Post: 11-11-2009, 10:30 PM
  2. Aggregation (sort of),
    By Terran in forum C++ Programming
    Replies: 13
    Last Post: 06-09-2008, 02:59 AM
  3. help in aggregation implementation
    By Bargi in forum C++ Programming
    Replies: 0
    Last Post: 11-01-2007, 03:01 AM
  4. problem with the has-a relationship (aggregation)
    By geo in forum C++ Programming
    Replies: 1
    Last Post: 02-26-2005, 04:13 PM
  5. difference between aggregation and composition
    By anil_beloved in forum C Programming
    Replies: 1
    Last Post: 10-18-2004, 12:17 PM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21