Inheritance (is-a) relationships are derived child classes that inherit attributes and methods from their parent class. Composition (has-a) relationships are classes whose attributes are comprised of other classes. Each relationship has its advantages and disadvantages. See the link below for best uses of each.
For example:
class Animal { }
class Dog extends Animal { }
This means Dog IS-A animal
2. HAS-A simply means reference
For example:
class Nip { }
class Dog { private Nip nip;}
This means Dog HAS-A Nip
Hope this helped!! :)
Answer:
Explanation:
Social exchange theory says relationships and our feelings in them are based on the few factors:
- <u>Cost and reward </u>– this is one of the main concepts in the social exchange theory. I<u>t takes into consideration what we give in the relationship (time, support, compassion, money, etc.) and what we can gain from it (rewards, acceptance, advice, support, etc.). </u><u>In order to have a full relationship, a balance between these two has to be found.</u> We need to gain some benefit from the relationship and to get as much as we give. Otherwise, this can be considered to be a parasocial relationship.
- <u>Expectations of relationshi</u>p – This part considers what we think we deserve from the relationship and what we want from it. If we don’t think our partner or friend is not worth us, we won’t have the positive feelings towards them.
- <u>Evaluation and alternatives</u><u> </u>– evaluation of what other possibilities we have means we are thinking can we have a better relationship somewhere else with somebody else. If we believe that we can find someone who is better suited for us, we will likely lower our feelings towards the person and leave the relationship.
- <u>Lenght </u>– The time we have known and spend with the person is also a valuable factor. Sometimes,<u> the more time we invest in the relationship, the more attached we feel. </u>However, there is a certain period called the “honeymoon period” in every relationship during which we think all is great. <u>Only after this period is over, and as we begin to see the person and our relationship in a true light, can we truly decide on our feelings.</u>
This is true, without a budget the president could essentially do what ever he/she wanted to do.
<span>an oceanic plate collides with a continental plate</span>
Answer:
The purpose of parables in Jesus Christ's teaching was to focus the listener on God and his kingdom. These stories revealed the character of God: what he is like, how he works, and what he expects from his followers. Most scholars agree that there are at least 33 parables in the Gospels.