samedi 10 octobre 2020

Design pattern factory or singleton or abstract factory or builder? [duplicate]

Hello i am looking for the design pattern of that code:

FileInputStream fin=new FileInputStream("X.zip");
BufferedInputStream bin=new BufferedInputStream(fin);
ZipInputStream zin=new ZipInputStream(bin);

i think it is a factory design pattern,what do you think guys?

Really there is no pattern,but they told me to give the name of the pattern in one word,it must be a design pattern since they asking me.

Aucun commentaire:

Enregistrer un commentaire