vendredi 28 septembre 2018

What Design pattern is this peudocode for?

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