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. C

    VIC Avoid going to court for the property settlement after 12mths has passed sicne divorce

    Hi, I was married for 10 years and got divorced for almost two years by now. Yes, 12 months has passed since the divorce order came in to effect. I am aware "once your divorce is final you only have 12 months to make an application to the Court for a property settlement unless there are...
  2. G

    NSW Applicant has not filed Trial affidavit for Final hearing

    We have orders from the Compliance and Readiness hearing to file our affidavits at the same time. The applicant has failed to do so by almost a week and it is 3 weeks to trial. What can the courts do?
  3. W

    I believe my lawyer has been very negligent and has cost me dearly.. What can I do now?

    I am in a very difficult legal situation and need some advice. I have been involved in a long running legal dispute with the purchasers of a block of land, which I sold in 2020. In November 2023, I engaged a new solicitor for my upcoming court case on the 1 May 2024. However, despite doing...
  4. 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...
  5. 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...
  6. 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...
  7. S

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

    Sorry posted in wrong thread somehow.
  8. 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.
  9. 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
  10. 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...