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

    NSW Does my ex-hunband legally have to tell me where he will be staying with the kids when he has them?

    Hi, my ex-husand hasn't seen our children for nearly a year and will get them next weekend (10yr & 7 yr old). He lives 4 hours away and will be driving to the city where I live to pick them up and stay with them for 2 nights. He won't tell me where he is staying with them. Does he leaglly have...
  2. B

    NSW how to evict someone who has no lease

    how to evict someone (tennant) who has no lease
  3. B

    NSW how to evict someone who has no lease

    how to evict someone (tennant) who has no lease
  4. B

    NSW how to evict someone who has no lease

    How can i evict someone from my property (tennant) who has no lease
  5. V

    VIC controlling property settlement

    Hi there, married 30 years, currently separated under one roof, my ex has completely stone walled me for the last 12mths Re property settlement as he controls all the assets, except for the family home. I have a temp FVIO in place, verbally abusive, with the odd push and shove. He's removed...
  6. W

    WA Has new Strata Titles Act 1985 changed liability for Internal Dividing Fences?

    Has the new Strata Titles Act 1985 (May 2020 ratified) changed the ‘liability for upkeep and maintenance’ for internal fences (not Boundary fences) within a Strata Scheme to that now solely being a Strata responsibility? Previously if an internal dividing fence repair or replacement was required...
  7. 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...
  8. 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...
  9. 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...
  10. 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...