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

    VIC What are my options when there is no response from the other party after the expiration of the deadline following the issuance of a letter of demand

    Another party initially engaged a lawyer for a money litigation, but there has been no response from the lawyer since then. I was subsequently compelled to hire a lawyer and issue a letter of demand, to which we have received no response from either the other party or their lawyer. What are my...
  2. K

    NSW Has Council contravened the Privacy Act?

    We are in dispute with counci regarding our front fence and the matter is being exacerbated by our whinging neighbour who has complained non stop for 15 years. Is it a breach of privacy that the council's building inspector wrote to the neighbour in response to his complaint that the council...
  3. K

    NSW Exempt and complying development when a DA has been approved.

    Last year we submitted a DA to council for renovations and increasing the front fence peers to 1.8m. This is allowed in the DCP/LEP. Majority of properties in the street and surrounds have similar front fences. Our renovations were approved, but not the increase in the fence height. No reason...
  4. N

    NSW Retaining Wall on a boundary line for new house builds. Who has ownership?

    Both my neighbour and I are building in a new estate. The estate had already provided a boundary retaining wall halfway up the boundary line, however it looks like we will now need to extend the retaining wall to the front of the property on the boundary line due to the different levels of our...
  5. B

    QLD Public Trustee mishandling of estate after death.

    My wife is the sole beneficiary of an estate handled by the Public Trustee Qld. The death happened on 24 December 2020 and the Public Trustee has been painfully slow in their handling of the estate. There is only a compensation payment she received before her death, as apart from that she had...
  6. L

    NSW Has anyone had a 190 visa approval with an avo

    I have no charge or conviction against me. Only an avo. Please advise. How likely is it that the application will go to Vaccu?
  7. Patience

    WA WA Health employer has terminated my employment prior to resignation date

    Hi all, I work for WA Health and resigned from my position on the 2nd January 2023. I gave notice up until 26 January which was a requirement in my contract. The manager came back to me on 11 January and said they've accepted my resignation, effective as of close of business Friday 13 January...
  8. A

    WA Father sends son Letter of administration 10 years after mother has deceased

    My father has hired a lawyer & sent me a consent notice to sign so he can become the administer of my Mothers estate. My mother died 10 years ago & I'm pretty sure she had a will. It states they have enclosed a copy of the will but nothing was there. I rang the lawyer & enquired she said to...
  9. B

    VIC My mother has dementia and I wanted to know if I can still organise an Enduring Power of Attorney , does her Doctor need to help me out on this ?

    My mother has dementia and I wanted to know if I can still organise an Enduring Power of Attorney , does her Doctor need to help me out on this ?
  10. A

    NSW Neighbour has excavated beyond the boundary, and now we need a retaining wall

    Hello, I am building a house that is essentially complete. Unfortunately the contractor excavating the block next door has excavated beyond the boundary, and now it is impossible for our fences to be erected without a retaining wall. They have removed large chunks of rock - of which our house...