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

who was animal farm by
Which excerpt from "An Occurrence at Owl Creek Bridge" best exemplifies third-person limited point of view?
In the Declaration of Independence the argument for freedom from British rule is based primarily on the
Plane ABC and plane BCE ____ be the same plane. a. must b. may c. cannot
Stick insects, also called walking sticks, are typically found in tropical and subtropical forests and grasslands. The insects are able to camouflage themselves
A cubic centimeter can be expressed as a.cm3 or cc b. ccm c. ccm3 or d.ct
Have no idea how to do 36, please help.
Calculate the missing length for this cylinder
How many great emperors were there during the Mughal Empire? 5 7 6 8
The soccer field measures 80 meters by 120 meters. Which is the correct unit of measurement to figure out how much fertilizer is needed to cover the field?