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

8a2 + 6a = 5 how do I do this?
What is 2 to the 10th power in scientific notation
example of a line that has no slope
How do u get the answer for 2/3✖️12=
Which statement is inconsistent with the concept of isotopes of the same element? a. Isotopes have the same number of protons b. Isotopes have the same atomic n
16x²-81=0 solve the following quadratic equation
what famous ancient greek mathematician came up with an approximate value of pi by circumscribing and inscribing circles in and around regular polygons?
the product of two consecutive positive even integers is 14 more than their sum
What do you call a fraction with her at normal numerator and a denominator as 0 ?
NaHCO₃ is a. a strong acid b. a strong base c. a weak acid d. a weak base e. a salt (made from an acid and a base)