Lazy initialization: differenze tra le versioni

Contenuto cancellato Contenuto aggiunto
Riga 18:
private String type;
// usingsi ausa privateun constructorcostruttore toprivato forceper useforzare ofl'uso thedel factorymetodo methodfactory.
private Fruit(String type){
this.type=type;