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
The term live load refers to the
maria [59]
<span>the weight of people or goods in a building or vehicle.</span>
3 0
3 years ago
one of the major debates at the constitutional convention was between delegates who wanted a strong federal government and other
kherson [118]

The Articles of confederation was considered to be weak and ineffectual so, Constitutional convention decided to transform it.

Federalists, who were strong supporters of the constitution deliberated that incorporation of Bill of rights would stand to be a barrier which would give a vague representation of the constitution. However after great deliberations they conceded to incorporate Bill of rights which were a series of amendments and this decision was to appease the anti-federalists who recommended the inclusion of Bill of rights. Federalists supported for the strong federal Government which has the power to raise an army, impose taxes and execute laws.

Anti-federalists fought for strong state governments as they were apprehended that the constitution may carry an element of despotism which was during the British rule and hence asked for representation of states.

Finally, the founding fathers concluded that each small state has a vote and they can form the senate and big states were given two votes and they were eligible to form the lower house. Thus the final outline of the Constitution was formed.

8 0
3 years ago
Read 2 more answers
According to james marcia, the status of adolescents who prematurely commit to an identity without adequately exploring alternat
soldi70 [24.7K]

<span>The answer is identity foreclosure. It is a phase of self-identity finding in which an individual has an individuality but hasn't explored other choices or ideas. Most common in young adolescents, in this stage the individual has just embraced the traits and qualities of parents and friends.</span>

5 0
3 years ago
Which of the following do NOT describe a typical flapper? long hair light makeup strings of beads short hair style long, waistle
Kamila [148]

long hair light makeup strings of beads hope this helps or r they suppose to be seperate?

4 0
3 years ago
Read 2 more answers
The facts surrounding an underlying crime are referred to as:
blagie [28]
Criminal justice i think?????
8 0
3 years ago
Other questions:
  • In the United States, what is a power that is reserved for the states?
    6·1 answer
  • the process of establishing an organizational culture that promotes the prevention, detection, and resolution of instances of co
    13·1 answer
  • In the late 1800's, the U.S. government treated Native Americans in an unfair way.
    12·1 answer
  • Do you think Napoleon is a democratic reformer or imperial dictator ?
    11·2 answers
  • Pls help ASAP. Please
    8·1 answer
  • Prepare<br>a news<br>story of<br>a woman suffering because of<br><br>dowsy system.​
    14·1 answer
  • Write a short note on classification of resources ​
    15·1 answer
  • What impact might the Mexico problem have on Canada?
    6·1 answer
  • To allocate manufacturing overhead to specific jobs, the needed journal entry would include a:__________
    14·1 answer
  • Under which circumstances would protests right to assembly most likely be protected?.
    14·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!