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!! :)
It is D...its where water and maybe one tree is
Answer:
Helping others is very important. The help given to others is often returned as well, creating positive ties and trust with others. Because it's important to know not everyone is as lucky as you are.Helping others is important because it gives others the opportunity to help you feel better about yourself.
Explanation:
The right that a citizen is exercising by joining a demonstration is the right to be heard.
This particular right refers to how an individual (even children) have the right to express their views in matters that affect them, and these view must be properly considered in the eyes of the law. It is generally considered to be a universal principle in today’s society, especially in democratic societies.
We are what makes the earth. Our actions are what shapes the world and yourself. For an example: If everyone recycled we could reuse certain materials and make the earth less polluted. It's up to you to have the future of your planet be the way you want it to be.