You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
17 lines
389 B
17 lines
389 B
3 years ago
|
package patronProxy;
|
||
|
|
||
|
public class Main {
|
||
|
|
||
|
public static void main(String[] args) {
|
||
|
|
||
|
Imagen imagen1 = new ImagenProxy("Foto1");
|
||
|
Imagen imagen2 = new ImagenProxy("Foto2");
|
||
|
|
||
|
imagen1.visualizarImagen(); //carga del fichero en Proxy necesaria
|
||
|
imagen2.visualizarImagen(); //carga del fichero en Proxy necesaria
|
||
|
imagen1.visualizarImagen(); //carga en el Proxy no necesaria
|
||
|
|
||
|
}
|
||
|
|
||
|
}
|