1answer.
Ask question
Login Signup
Ask question
All categories
  • English
  • Mathematics
  • Social Studies
  • Business
  • History
  • Health
  • Geography
  • Biology
  • Physics
  • Chemistry
  • Computers and Technology
  • Arts
  • World Languages
  • Spanish
  • French
  • German
  • Advanced Placement (AP)
  • SAT
  • Medicine
  • Law
  • Engineering
lora16 [44]
2 years ago
7

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.
Social Studies
1 answer:
lord [1]2 years ago
4 0

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!! :)

You might be interested in
10 aspects regarding the crusades
Aleonysh [2.5K]

Answer:?

Explanation:

3 0
3 years ago
Read 2 more answers
which event occurred in Afghanistan? a. the united states captured osama bin laden and other al qaeda leaders. b. the taliban ca
postnew [5]

Answer:

The Correct Answer is D

Explanation:

  • In November 2001 Northern alliance back up by the US-led coalition forces captured the city of Kabul and with the capture of Kabul Taliban forces surrender power and Bin laden was on run.
  • This whole occurs when the United State forces began their strikes against the Taliban in October 2001. United States attacked with his coalition forces which include Britain, Australia, Canada, and Northern alliance.
  • After the massive attack on the Kabul by the US-led coalition has started a few days later only the Taliban abandoned the capital Kabul and the Northern alliance back up by the US forces gained control over Kabul and a new democratic government was set up.
7 0
3 years ago
Read 2 more answers
What concerns did the northerners have about the fugitive slave act?
crimeas [40]
The Northerners were concerned that the commissioners would think only about the money involved and the slaves would be denied their rights because of this process. 
4 0
2 years ago
Many villages in the Sahel have been settled _____.
Viefleur [7K]
I am pretty sure that many villages in the Sahel have been settled at the edge of the Sahara. I choose the option C because It seems to me that you are referring era of Sahelian Kingdoms and If so, most odf them were settled <span>at the edge of the Sahara. Do hope you will find it helpful!
Regards.</span>
6 0
3 years ago
A national survey indicated that _____ in adults was associated with the development of disease and chronic illness, especially
IgorC [24]

Answer:

insecure attachment                                  

Explanation:  

Insecure attachment: The term "insecure attachment" is described as one of the relationship styles in which an individual's bond with another person is being contaminated or affected by fear. However, insecure attachment is being expressed in terms of reluctance in a specific relationship and related mixed emotions, for example, rejection and dependence. According to many psychologists, insecure attachment is mainly established during the early childhood period of life.

In the question above, the given statement represents an insecure attachment.

5 0
3 years ago
Other questions:
  • Billy refuses to drink his orange juice from the 1/2 full glass that his mother gives to him. he wants her to pour the juice int
    10·1 answer
  • What does aha mean in driving
    14·1 answer
  • The major characteristics of ancient Egypt.
    14·1 answer
  • All of the following are major factors that affect the consumer buyer decision behavior, except _____________.
    8·1 answer
  • What specific things do the virginia declaration of rights and the declaration of independence have in common?
    14·1 answer
  • Martina believes that high doses of caffeine slow a person's reaction time. To test this belief, she has five friends each drink
    11·1 answer
  • If Sally gets laid off from her job because her store is not getting enough business, then she is ________________ unemployed.
    14·1 answer
  • Conservative pundit, and former presidential candidate, Pat Buchanan called for a religious war for the soul of America in 1992.
    11·1 answer
  • How does culture influence our thoughts, feelings, and behaviors? In other words, how does culture influence personality? Please
    12·2 answers
  • In the information age, electronic modes of communication have shrunk the distances between inhabitants of the world community,
    8·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!