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

  • Home
  • SEARCH
  • 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 8038079
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 5, 20262026-06-05T03:07:09+00:00 2026-06-05T03:07:09+00:00

Update 3 What do the signs (single line, diamond with star, and arrow) mean

  • 0

Update 3

What do the signs (single line, diamond with star, and arrow) mean in graph (From Eric’s ddd book p195) below:

enter image description here

Any code sample to illustrate would be appreciated.

  • 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-05T03:07:12+00:00Added an answer on June 5, 2026 at 3:07 am

    The diamond is composition (also called aggregation), or a has-a relationship. The arrow is inheritance, or an is-a relationship. The line is an Association. That leads to the question: what’s the difference between Composition and Association. And the answer is that composition is stronger and usually owns the other object. If the main object is destroyed, it will also destroy its composition objects, but not its association objects.

    In your example, a Facility contains a (has-a) LoanInvestment and a LoanInvestment inherits from an (is-a) Investment

    Here is an excellent description of class diagrams using UML.

    Here’s a code example in c++, I dont know c# well enough and Id probably mess it up 🙂

    class Facility
    {
    public:
        Facility() : loan_(NULL) {}
    
        // Association, weaker than Composition, wont be destroyed with this class
        void setLoan(Loan *loan) { loan_ = loan; } 
    
    private:
        // Composition, owned by this class and will be destroyed with this class
        // Defined like this, its a 1 to 1 relationship
        LoanInvestment loanInvestment_;
        // OR
        // One of the following 2 definitions for a multiplicity relation
        // The list is simpler, whereas the map would allow faster searches
        //std::list<LoanInvestment> loanInvList_;
        //std::map<LoanInvestment> loanInvMap_;
    
        Loan *loan_:
        // define attributes here: limit
    };
    
    class Loan
    {
    public:
        // define attributes here: amount
        // define methods here: increase(), decrease()
    private:
        // 1 to 1 relationship, could consider multiplicity with a list or map
        LoanInvestment loanInvestment_;
    };
    
    class Investment
    {
        // define attributes here: investor, percentage
    };
    
    class LoanInvestment : public LoanInvestment
    {
        // define attributes here
    };
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Update: It turns out that Twitter doesn't know single tweet ID from URL fragment
Update : This is no longer an issue from C# 6, which has introduced
Is there a decent way to declare a long single line string in C#,
I am drawing some signs in my JPanel(hh:mm -> time), but when I update
I've been experiencing a little problem when I try to update some record from
UPDATE (13th June 2012): RStudio now supports a range of mathjax delimtiers including single
I used McCoy tool to Install my install.rdf file and sign my update.rdf file.
Update: Is there a way to achieve what I'm trying to do in an
update: I mistyped 2 variables...so embarrassing. thanks everyone for the effort! sorry i find
Update: I reported this as a bug to Apple and they fixed it! All

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.