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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T22:07:23+00:00 2026-05-28T22:07:23+00:00

In Object Oriented when I create a class variable and initialize it in my

  • 0

In Object Oriented when I create a class variable and initialize it in my constructor could we say that it’s an UML aggregation? In the same idea could we say that a variable defined in a method is an UML association?

What are the links between UML association / aggregation / composition and OO class?

  • 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-05-28T22:07:24+00:00Added an answer on May 28, 2026 at 10:07 pm

    In general, compositions are special cases of aggregations which are special cases of associations. What you use depends on the model, i.e. on the properties of the association.

    UML doesn’t deal with the actual implementation and you could as well implement a model described by UML in a non-OO way.

    As for your question for the link between UML associations and class/instance members: basically every member that references another class is an association (even though primitive wrappers like String or Integer in Java normally don’t count).

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

Sidebar

Related Questions

I have a need to create a library of Object Oriented PHP code that
There's some object-oriented engineering principle that states something along the lines of a class
In object-oriented programming, we might say the core concepts are: encapsulation inheritance, polymorphism What
I'm familiar with object-oriented architecture, including use of design patterns and class diagrams for
Which constitutes better object oriented design? Class User { id {get;set} } Class Office
I am playing around with Object Oriented Design/Database design by creating an application that
I am trying to create a class with various methods that will need to
I want to create a simple class that I can use and encode as
I have an object oriented framework that uses a page design, where each page
In my game there are a lot of object of class Foo that interact

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.