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 -
- f1() calls f3().
- f3() calls f4().
- f4() calls f5().
- f5() calls f2().
Is it a bad design? If yes, how can this design be improved??
Aucun commentaire:
Enregistrer un commentaire