Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8099951
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 5, 20262026-06-05T22:34:46+00:00 2026-06-05T22:34:46+00:00

If we consider a UML diagram where we have an object which contains a

  • 0

If we consider a UML diagram where we have an object which contains a collection of objects of another class.
What kind of relationship will be there,between both the classes.

Will it be aggregation or it will be Composition ?

The object having collection wont directly be having these objects, instead the collection will be holding them.
but then in this case can we represent it as 1 is to Many, containment kind of relationship ?

I am very new to UML, I am sorry if It seems a total noob question.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-05T22:34:48+00:00Added an answer on June 5, 2026 at 10:34 pm

    Less U.M.L., More Conceptual, Practical Answer

    You have a first object, that contains another second object.

    The second object its by itself a collection, that contains several object elements.

    In a very technical, design or programming point of view, someone could think of the elements, not be related to the first object, but, to the second object as its container.

    The first object its delegating the process of containning & managing objects to the second object.

    I have use this case, several times, in Design & Programming. In many collection libraries, (arrays, lists, stacks), each item has a reference to the container.

    I sometimes, add the reference to the first object itself, in each item.

    So, you may think, of the main first object, & the collection object, as a single object.

    Cheers.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

For example, consider the following: There is a class Text Group which is a
We are attempting to use VS2008 Class Designer for a UML-like class diagram. However,
Consider: Public MustInherit Class Column Public ReadOnly Property ReturnSomethingUseful() As Object Get 'return something
Consider I have two classes. Professor and TimePerDay. public class TimePerDay { private ObservableCollection<TimeSpan>
Consider this problem: I have a program which should fetch (let's say) 100 records
I'm new to UML.I have a question.consider we have a user that can change
Consider that I have a complex class structure where many elements inherit from other
Consider the following URL: http://www.iamsomeweiredurl.fromsomewhere/andIwant#thisfragment Is there a chance to get thisfragment by @RequestMapping
Consider the following code: template <class x1, class x2 = int*> struct CoreTemplate {
Consider the following Mechanize form object #<Mechanize::Form {name f1} {method POST} {action f.php} {fields

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.