mardi 22 décembre 2020

proxy design in java

I've got a question regarding proxy design.

So I've been asked to implement a proxy design in my project,

it asks of me to not directly create objects so my question is,

does that mean I shouldn't be doing this:

User user = new User (...);

company.add(user);

and instead i should be doing this:

company.add(new User (......));

or what does it mean?

enter image description here

Aucun commentaire:

Enregistrer un commentaire