jesus7486 jesus7486
  • 22-08-2019
  • Computers and Technology
contestada

Why do we generally favor composition over inheritance?

Respuesta :

Cetacea
Cetacea Cetacea
  • 30-08-2019

Answer:

Composition is the technique where the the design can be changed in future according to the requirement as it has a malleable flow of nature.

Inheritance is the techniques where the factors of the model is acquired from the other design and thus shows a rigid nature due to the derivative nature.

Hence composition is preferred over the inheritance method as it can be changed accordingly which makes it's nature helping than the inheritance which have certain unaltering nature.

Answer Link

Otras preguntas

Which is the most complete explanation of why people immigrated to the United States in the late 1800s and early 1900s?
Find the square root of the fraction 64?100
Exercising regularly reduces the risk of developing which of the following conditions?
Simplify 42 β‹… 48. 416 410 1616 1610
Which sentence does not contain any errors? A. The players' uniforms were black and gold. B. The players's uniforms were black and gold. C. The players uniforms
β€œNa2SO3” represents sodium sulfite.What does the 4 mean in the formula 4Na2SO3?
Which word correctly completes the sentence? __________ shoes are all under the coffee table. A. James's B. James'
______ tu contento hoy
Four cards are drawn in succession, without replacement from a standard deck of 52 cards. how many sets of four cards are possible?
the gardener trims the plants on Tuesday he does a great job