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]
3 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]3 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
Why study comparative religion?​
VashaNatasha [74]

Answer:

The comparative religion major introduces students to broad theoretical issues in the academic study of religion, and encourages them to explore these issues through mastering details of the textual canons, historical traditions, social contexts, and cultural forms of religion.

6 0
3 years ago
What term do sleep researchers use to designate the first three stages of sleep?
Virty [35]

The best answer for question this would be:

 

Non-REM sleep

 

<span>In one of the stages of sleeping, dreaming is more likely to occur in this, yet it fails to have a long lasting impression on the person, rather they will easily forget the dream that had happened.</span>

3 0
3 years ago
As a result of the public's distrust of public relations, congress passed the _____________ in 1946, requiring that those who de
AVprozaik [17]

Federal Regulation of Lobbying Act

4 0
3 years ago
During the Jim Crow era, whites and blacks were separated by extreme segregation. While the free black electorate threatened the
Svetlanka [38]

Answer:

Noel hypothesis.

Explanation:

The theory that best explains segregation under these conditions is the <em>Noel hypothesis</em>. The Noel hypothesis claims that if there is contact of groups were there is ethnocentrism, competition and differential in power, some dominant-minority group will be created. This will lead to inequality. Ethnocentrism is the belief in the superiority of our race and culture. It can make us view the other race as inferior. The three components of this hypothesis were present during the Jim Crow era.

3 0
3 years ago
Why are the research methods of sociologists different from those of most other scientists
kompoz [17]
<span>Because basically, in the first place, both are from different fields. While sociology is more on arts, other sciences such as Physics, Biology and Chemistry are the hard sciences. Hard sciences means that the experimentation requires a very small amount of error, up to one percent. This experimentation uses materials which really expensive and harmful. Meanwhile on sociology, it requires a room of error up to five percent since some of its population is bound to different errors such as human errors, etc.</span>
5 0
3 years ago
Other questions:
  • In the news report of the flooding that followed hurricane katrina, a black man walking through chest-deep water was described a
    11·1 answer
  • Discuss reason why some victims do not report abuse
    11·1 answer
  • What is a major comparison between ancient India and ancient china
    5·1 answer
  • Those who teach or coach in an educational environment may be able to use the defense of ________, which involves using reasonab
    11·1 answer
  • In which form of government do delegates speck on behalf of the house?
    10·1 answer
  • What was one immediate impact of the Cold War on South Carolina? *
    8·1 answer
  • What did Sir Francis Drake trade during his first expedition to the New World?
    8·1 answer
  • The Senators and Representatives of Congress were not to hold any other ___ while in their elected office.
    15·1 answer
  • Oscar is thirteen and frequently twists his head uncontrollably, and yelps or grunts. If he has not done this for several hours,
    7·1 answer
  • After the victory of Operation Torch, Winston Churchill said that "the soft underbelly of Europe" lay open to Allied attack. Wha
    5·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!