mercredi 3 avril 2019

compostion over inheritance With example

One of the Rule of strategy design pattern is,

Composition over inheritance

  1. Multiple inheritance problem
  2. Method will duplicate
  3. Fragile class caused
  4. Doesn't support unit test

===> just i wanted to get all these problem by a simple example

Aucun commentaire:

Enregistrer un commentaire