mardi 31 mai 2016

Proxy Design Pattern- tutorialspoint.com example

http://ift.tt/1lLFDpn

Hi,

I am looking to understand proxy design pattern in java using the example in the link above. In main method I don't understand the difference between:

  //image will be loaded from disk

  image.display(); 
  System.out.println("");

  //image will not be loaded from disk

  image.display();  

Is this a typo? How can the same 2 image.display() methods give different outputs?

Thanks a lot!

Aucun commentaire:

Enregistrer un commentaire