has

Australia's #1 for Law
Join 150,000 Australians every month. Ask a question, respond to a question and better understand the law today!
FREE - Join Now
In database design, object-oriented programming and design (see object oriented program architecture), has-a (has_a or has a) is a composition relationship where one object (often called the constituted object, or part/constituent/member object) "belongs to" (is part or member of) another object (called the composite type), and behaves according to the rules of ownership. In simple words, has-a relationship in an object is called a member field of an object. Multiple has-a relationships will combine to form a possessive hierarchy.
This is to be contrasted with an is-a (is_a or is a) relationship which constitutes a taxonomic hierarchy (subtyping).
The decision whether the most logical relationship for an object and its subordinate is not always clearly has-a or is-a. Confusion over such decisions have necessitated the creation of these metalinguistic terms. A good example of the has-a relationship is containers in the C++ STL.
To summarize the relations, we have

hypernym-hyponym (supertype-subtype) relations between types (classes) defining a taxonomic hierarchy, where
for an inheritance relation: a hyponym (subtype, subclass) has a type-of (is-a) relationship with its hypernym (supertype, superclass);
holonym-meronym (whole/entity/container-part/constituent/member) relations between types (classes) defining a possessive hierarchy, where
for an aggregation (i.e. without ownership) relation:
a holonym (whole) has a has-a relationship with its meronym (part),
for a composition (i.e. with ownership) relation:
a meronym (constituent) has a part-of relationship with its holonym (entity),
for a containment relation:
a meronym (member) has a member-of relationship with its holonym (container);
concept-object (type-token) relations between types (classes) and objects (instances), where
a token (object) has an instance-of relationship with its type (class).

View More On Wikipedia.org
  1. G

    QLD Mechanic has been fixing my car 7 months for a 3 day job. What are my rights?

    I had a BMW mobile mechanic service my car in May 2023. He advised that the turbos needed replacing and not to drive the car. I sourced the turbos but when it came to get a mechanic most only supply and install. The best quote I had was for $1500 but they were on the other side of town. Was...
  2. F

    NSW My husband has an ADVO on him by the police to protect me. Court hearing is pending after a few days.

    My husband has an ADVO on him by the police to protect me. Court hearing is pending after a few days. Im still on a partner visa 820. Will this affect my visa processing? I did not want to do the advo on him but the police did it on him to protect me, how can I withdraw it? Can I have my say in...
  3. S

    VIC EX Has Not Transferred Property Title.

    Hi, This will be my 3rd time trying to post this topic. My ex after 3 years now has still not transferred a property title from my son back to her as per the court order. I found this out from final notices sent via registered post this Tuesday from both the local council and water company...
  4. S

    VIC EX Has NOT Transferred Title/Property back in her name after Family Court Order....

    Sorry posted in wrong thread somehow.
  5. M

    VIC CSA - When other parent not following orders - has asked CSA to pay 'actual' care

    Hello, I'm waiting for mediation but in the mean time, the ex is not following parenting orders. She has applied to CSA for actual care despite FCC orders being in place. CSA say they will act on actual care... Any advice? Mediation is still months away.
  6. edmedm123

    Has Any one checked out this AI Lawyer- is it good?

    i just wanted to see if anyone has used this AI Vic traffic Lawyer https://chat.openai.com/g/g-9v8vjWlFW-victorian-traffic-lawyer
  7. O

    VIC Neighbours swimming pool drained into our property has killed trees

    We have a recently arrived neighbour that we have not yet met, who has purchased an adjoining property, who appears to have drained a salt water swimming pool into our garden. I looked over the fence and saw a hose running from his now empty salt chlorinated pool up to our fence which is...
  8. G

    WA Access to a river setting.

    Hi, I live in a van park where there are 200 permanent residents all blocks in the park have individual titles, as such each has to pay the appropriate rates as any household would. The van estate is regarded a private, we pay strata fees each quarter. There are many issues involved and it is...
  9. Hellomyonlyfriend

    NSW Do police usually uplift video footage after it has been tendered?

    Do police usually uplift video footage after it has been tendered? Or is that just when they have it in for you?
  10. thommoAj

    Neighbour has Privacy Screen Attached to common Fence - I painted our side.

    Hi, we have a common fence, and on the neighbor's side a privacy screen is attached, the screen extends perhaps 1/2 a meter above the common fence. Not sure when the privacy screen was added but it was before the current owners bought the house next door, and probably before we bought it, so...