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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T21:00:43+00:00 2026-06-17T21:00:43+00:00

In the below diagram, the class Copy and class Book are showing an aggregation

  • 0

In the below diagram, the class “Copy” and class “Book” are showing an aggregation (Book has a Copy). All other classes are sub classes of class “Copy”. Now, imagine there is a Member class, which has to access the sub classes “Lending” and “Borrow” of class “Copy”. The only thing that ‘Member‘ class should know is “accessionNumber”.

If we think of this in terms of code, my “Book” class contains an array of “Copy“.

enter image description here

How can I know the accessionNumber of a particular book?

Lets say I need the “accessionNumber” of the 3rd book in my copies array. But the array is in the Book class, and there is no connection to the Book class from the Copy class.

If we create a connection back, would that be like “Copy has a Book”, or more meaningfully, something like “Subject has Student” (taking the famous aggregation example “Student has a Subject)?

  • 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-17T21:00:44+00:00Added an answer on June 17, 2026 at 9:00 pm

    If we create a connection back, would that be like “Copy has a Book”

    No, it wouldn’t. A simple dependency relationship (e.g. a reference or non-owning pointer in C++) is not the “has a” or “owns a” relationship you’d get from the stronger associations of aggregation or composition. That sounds like what you want here.

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

Sidebar

Related Questions

As you can see in architecture diagram below android platform has been built using
Could someone show me how to change the Relationship Diagram below into class diagrams
As you can seen in the diagram below there is a one-to-many relationship between
What is the preferred way to model the below in a UML class diagram?
I am using a composite pattern as shown in the class diagram below. Basically
As shown in the diagram below, my app has a few UIViews, B ,
i want tool for to generate DB diagram below, i need to generate particular
Below is the code from internalRegister method of GCMRegistrar class static void internalRegister(Context context,
Below code not work, but it's work fine for jsf1.2. Now the framework is
Are there any good tools to generate UML class diagrams using the source code

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.