In an interview I was asked this quistion :
X a = new X("param"); Y b = new Y(a); Z c = new Z(b);
I was thinking about Creational DP : AbstractFactory but I am not so sure.
So what DP is this code ?
Thank you
Aucun commentaire:
Enregistrer un commentaire