Give an example of an IS-A (inheritance) relationship and a separate example of a HAS-A (composition) relationship within the fi
elds of either mathematics, biology, or engineering. The example should be different from one given in class. Explain why these are appropriate examples.
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.
Animals get the nitrogen they need by eating plants or other animals that contain nitrogen. When organisms die, their bodies decompose bringing the nitrogen into soil on land or into ocean water. Bacteria alter the nitrogen into a form that plants are able to use.