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
The term that Updike uses to refer to the working agreement between a husband and wife or a parent and child is
Dmitrij [34]
Social contract.. i think
8 0
3 years ago
Read 2 more answers
The sophisticated and rigorous nature of _____ makes them the best way to collect information by asking people questions.
Ugo [173]

scientific polls

scientific polls are the best way

4 0
3 years ago
According to a panel of experts in 1921, intelligence consists of the abilities to do all of the following except
faust18 [17]

a. reason concretely.

4 0
3 years ago
After feeding her child three-fourths of his meal, a mother begins asking him if he wants more, and feeds him another bite each
melamori03 [73]

Answer:

Multiple schedule reinforcer assignments

4 0
2 years ago
Country Days to Start a Business Days to Obtain a Business License
Genrish500 [490]

Answer:

The correct answer is - <em>D) Saudi Arabia.</em>

Explanation:

Economic freedom is the ability of people to take economic actions in the country. <u>In Saudi Arabia </u><u>it takes the least amount of days</u><u> to start a business and to obtain a business license, comparing to other presented countries.</u>

Here it takes 5 days to create a company (namely, registering its name, address and owners) and 105 days to obtain a licence to operate in the country.

Company can be functional and legal, even without business licence, but in most cases, a business licence is needed to carry out its business activities at full. For example, to participate in a tender.

7 0
3 years ago
Other questions:
  • Which of the following actions has had the greatest effect on the shrinking of the Aral Sea
    9·1 answer
  • Which attraction can be seen at the Lyndon B. Johnson Space Center in Houston?
    12·2 answers
  • What reasoning did some critics use when calling for the repeal of the 22nd Amendment? A President should be limited to one seve
    9·1 answer
  • A wind turbine produces electricity <br> From what kind of energy?
    14·2 answers
  • Which type of control is future oriented and aims to prevent problems before they arise?
    8·1 answer
  • Which mission is not going to explore outside the solar system
    5·2 answers
  • Today in the Middle East there are many conflicts that stem from the boundaries of the countries. Many boundaries either include
    15·1 answer
  • What are Federal Laws are recorded in
    15·1 answer
  • Which two factors caused many Americans to migrate to the west in the mid 19th century?
    10·2 answers
  • Jane is sedentary and obese. what effect, in any, do these factors have on her health
    13·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!