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
There are currently _____ kingdoms.<br> 2<br> 4<br> 6<br> 8
Sonja [21]
At this time, 6 kingdoms are used to classify. The kingdoms are Archaebacteia, Eubacteria, Protista, Fungi, Plantae, and Animalia.
6 0
3 years ago
Read 2 more answers
If you do this then I will make random question worth 100 points
fiasKO [112]

Answer:

B

Explanation:

because it was caused by the french and Indian war it has french right there

3 0
3 years ago
Question help one of your​ classmates, sally, is a hardworking​ student, serious about her​ classes, and conscientious about her
djyliett [7]

​Yes, she is utilizing her opportunity dispensed among​ school, considering, games and humanitarian effort in a way she regards best.  

Rational behavior alludes to a basic leadership process that depends on settling on decisions that outcome in the ideal level of advantage or utility for a person.  

To behave rationally, we settle on choices and act in manners that best accomplish our requirements. Thus, rational conduct is objective arranged. Rational behavior happens when we are seeking after objectives as per our set inclinations and needs.

4 0
3 years ago
Do you believe being ethical will lead to a better quality of life for you? Do cheaters win in the real world, or does ethical c
kakasveta [241]

Question #1:

Do you believe being ethical will lead to a better quality of life for you?

Answer:

Being ethical will definitely lead to a better quality of life for me, mainly because the tranquility, the peace and the ease of mind that being ethical gives you is with no doubt better than any satisfaction that may give something gained through something unethical, when your conscience is clean your quality of life will improve dramatically.

Question #2:  

Do cheaters win in the real world, or does ethical conduct lead to a more satisfying outcome?

Answer:

Well it depends a lot, for example if you define outcome as something solely material then cheating could give you a more satisfying outcome, but if we take other factors into account we can have a completely different point of view, for example, if you cheat in a chess game you may win but you won't be really satisfied knowing that you only won because of cheating, and this applies for everything that implies cheating in something.

Question #3:

Are there times you would be willing to compromise your ethics for business gain?

Answer:

Definitely no, if you compromise ethics for business gain there's a very big chance more so in business where everyone is paying close attention to every activity related to it, so you could end up losing everything for compromising your work and personal ethics.

5 0
4 years ago
Read 2 more answers
Why did the owner of the calaveras reservoir decide to build a replacement dam?
Dima020 [189]
Because he needed to separate things <span />
7 0
3 years ago
Read 2 more answers
Other questions:
  • Fred and joe, two unrelated, mature male gorillas, encounter one another. fred is courting a female. fred grunts as joe comes ne
    14·1 answer
  • The contras were guerrillas supported by the United States who fought against the Sandinistas in the 1980s.
    10·2 answers
  • What were some of the consequences did the first nations face?
    11·1 answer
  • What are some of the possible advantages and disadvantages of memory being a constructive process?
    7·2 answers
  • How dose judaism influence modern society
    14·1 answer
  • What is not considered one of the basic human emotionals
    5·1 answer
  • SOS is a life giving organization to some orphans in the world . Support this statement with its programs in Nepal .
    15·1 answer
  • Can anyone please help T^T
    9·1 answer
  • The transition from childhood through adolescence is not a smooth one, especially in regards to the physiological, cognitive and
    10·2 answers
  • What is the only novelistic viewpoint that can be directly translated into cinema?
    8·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!