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
As a result to the treaty, germany lost land to
sergij07 [2.7K]

Answer:

The French and the Poles

Explanation:

Germany lost part of its western land to the French and some of its easetern half to Poland.

3 0
3 years ago
The Gulf of Tonkin Resolution gave President Lyndon Johnson wide latitude to escalate the conflict. a. resulted in a U.S. declar
ira [324]

Answer:

c. both gave President Lyndon Johnson wide latitude to escalate the conflict, and called for 250,000 U.S. combat troops to be sent to Vietnam.

Explanation:

8 0
3 years ago
Sandy found a new job that would pay much more than her current job and, in accordance with company policy, gave her employer tw
tia_tia [17]

Answer:No because Sandy is at will employee

Explanation:

Employment at will refers to the fact that an employer could terminate an employee with no reason given or warning or an employee can leave their work for no given reason at all.

In this case no one owns anyone an explanation both employer and employee provided that it wasn't cases of using unreasonable factors such as gender or race.

Sandy has decided to quit her job at her own will and the employer decided to terminate her employment at their own will so she can not expect any further salary from her employer.

5 0
3 years ago
What should be done to improve human resources​
Artist 52 [7]

Answer:

WE SHOULD PROVIDE CHEAPER EDUCATION .

WE SHOULD INCREASE THE PAYMANT FOR THEIR WORK.

WE SHOULD DEVELOP SKILLED INSTITUTION.

Explanation:

5 0
3 years ago
Read 2 more answers
Which city grew because of the factories in this industry ?A.houston B. Pittsburgh C. Chicago D. Detroit
Travka [436]

Answer:

Chicago

Explanation:

7 0
3 years ago
Other questions:
  • When she goes to the grocery store, mykaeya leaves her shopping list at home. she is able to remember the first few things on he
    7·1 answer
  • An individual applies for a life policy. Two years ago he suffered a head injury from an accident, so he cannot remember parts o
    5·1 answer
  • 1)
    12·1 answer
  • A few women joined the military as soldiers. How were these women able to serve in the military?
    13·2 answers
  • The Parthenon is considered the finest example of ancient Greek architecture because of its
    9·1 answer
  • âOrdinarily, federal judges:________ serve twelve-year terms. âcannot be removed from office through the impeachment process.
    6·1 answer
  • The economic functions of Government in the Public Sector are very influential in the _____________ in an economy.
    8·1 answer
  • Which term did Winston Churchill use to describe the division between Soviet-dominated Eastern Europe and democratic Western Eur
    6·1 answer
  • Marcy is known for her strong critical thinking skills. She is able to look at a problem from many sides and identify the underl
    10·1 answer
  • Has a supreme court justice ever been impeached and removed
    15·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!