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 8768933
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T17:11:50+00:00 2026-06-13T17:11:50+00:00

Is it correct, that the strong attribute refers to an object composition, and the

  • 0

Is it correct, that the strong attribute refers to an object composition, and the weak attribute refers to object aggregation, in terms of UML notation?

  • 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-13T17:11:52+00:00Added an answer on June 13, 2026 at 5:11 pm

    Interesting question.

    I would say they are similar but different.

    In Objective-C the raison d’être for weak references is usually described as a way to manually break what would otherwise be a retain cycle – this is needed as ARC does not (at least currently) support collecting such cycles. This is not really a use of aggregation.

    You will also see them used for things like notifications where one object will send notifications to another as long as the latter exists. This might be seen as closer to aggregation, but is really “do something if the target exists” and not “don’t kill the target if I die”.

    You can of course use weak references in Obj-C to implement an aggregation, but you might not get exactly the behaviour you expect.

    Consider the C++ example from your reference:

    class Professor;
    
    class Department
    {
       ...
    private:
       // Aggregation
       Professor* members[5];
       ...
    };
    

    Which in Objective-C might be:

    @interface Department
    
    @property (weak) NSArray *members;
    ...
    
    @end
    

    When the C++ object is destroyed the array is also destroyed but the elements of the array are not. However in Objective-C the array is not destroyed either – an NSArray always maintains strong references to its members, so they stay around. You could of course design weak collections for Objective-C.

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

Sidebar

Related Questions

Say, I have a string that I need to verify the correct format of;
i used this code: List<string> lists=new List<string>(apple,orange,banana,apple,mang0,orange); string names; names=lists.Distinct() is that correct?
Am I correct that the only way to prevent a method from being executed
Is it correct that the reveal applescript command is broken with iTunes 9? Works:
I'm new to Symfony. Is my understanding correct that the User class is actually
(1). When using C++ template, is it correct that the compiler (e.g. g++) will
My Visual Studio 2008 debugger is showing integers as hexadecimals, how to correct that?
Is that correct: When I query a value before validation (or if validation failed)
Well, I know that correct escaping will help to prevent SQL injection. But I
Like in: u'Hello' My guess is that it indicates "Unicode", is that correct? If

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.