jeudi 22 décembre 2016

How to avoid cyclic calls from a flow?

There are 4 classes as mentioned below -

  • class A having 2 methods f1() and f2().
  • class B having method f3().
  • class C having method f4().
  • class D having method f5().

Now the following is true about the above classes -

  1. f1() calls f3().
  2. f3() calls f4().
  3. f4() calls f5().
  4. f5() calls f2().

Is it a bad design? If yes, how can this design be improved??

Aucun commentaire:

Enregistrer un commentaire