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

    TAS Neighbour has built large tower with floodlights and cameras

    My neighbour has a large block of land and has begun using it as a car wrecker yard. They are continuously revving high-powered engines and the noise is very annoying. Yesterday they installed a 20m high pole, with floodlights and CCTV cameras, which is not only an eyesore as it looms above all...
  2. D

    WA Does a Verbal parenting plan override a court order ( if the verbal has been followed for 2 years )

    I am looking to relocate ( 2 hours away ) and wish to revert back to my original court orders that were followed for 3 years. I had legal advice that my new verbal parenting plans supersedes the court order ( even though not signed ) as we had a new care roster for 2 years. Now I want to go...
  3. B

    NSW Ex has lied to child support about her income

    My ex has been lying about her income since last years assessment, telling child support her income is 12K and she is casual, when for 80% of the year she has been part time employee earning 45K and in the last 3 months went full time now earning 55K. I’d be lying if I said it didn’t annoy me...
  4. R

    NSW Drug court

    My partner is currently in jail for sanctions through drug court and was meant to be released on the 1 at of July but they have put his release date back to the 5 th of August due to covid even though he has done his original two weeks for sanctions are they able to keep him in this long even...
  5. M

    NSW My friend has a arrest warrant in NSW can he travel overseas?

    My friend has a arrest warrant in NSW for not completing community correction order. Currently residing in VIC He is not a Australian permanent resident. Now he want to permanently fly overseas to his home country. Has a warrant about 5 years old. Will there be any issue at airport immigration...
  6. B

    QLD Death certificate has an error about deceased children. 2 are living 1 is deceased.

    My husbands Qld death certificate is incorrect. 2 children living. 1 deceased
  7. G

    NSW what advice do you have for us as tenants now that rental property has been sold?

    we have a fixed term lease until 10th October 2021. the new owner is keen we stay as tenants until July 2022. Settlement date for the sale of the property is July 2021. I anticipate we will sign a new lease in a few weeks (in July 2021) from 11th October 2021 until July 2022 and all will be...
  8. L

    SA Tricky Mother has had Daughter Assessed for Autism

    Thank you for answering my questions. This is a tricky situation, the mother of the child (daughter) has paid for a autism assessment in which she has lied and stated the father has no contact or involvement with the child. The mother has signed a legal contract stating this to the...
  9. M

    NSW No Stopping sign not present when we parked at 2P streetside sign but has appeared in revenuensw photos as a very slanted sign on top of the 2P sign

    My wife drove our family to eat at about 5:35pm near Star City Casino on 16 May. Both of us looked at the 2P sign that was outside the restaurant before we decided to park there as we could only see 2P till 6am-6pm. So we only paid to 6pm & thought we can continue to park there unrestricted...
  10. T

    NSW right of carriageway

    I share my drive way with my neighbour for about 10 years but has been hard on us since he does not follow the terms of the right of carriageway. He can build a driveway to get in his garage but he prefer not to and keep his car parked on the driveway because I have another driveway. I can't ask...