added lab13 ex1

This commit is contained in:
2024-11-11 09:41:57 +01:00
parent 3743b47887
commit 7c614b0c5c
5 changed files with 98 additions and 0 deletions

View File

@ -0,0 +1,19 @@
package lab13_proxy.ex1;
public class Main {
public static void main(String[] args) {
User jean = new User("Jean");
User paul = new User("Paul");
User pierre = new User("Pierre");
RegistrationService.register(paul);
Image highResolutionImage1 = new ImageProxy("sample/veryHighResPhoto1.jpeg");
Image highResolutionImage2 = new ImageProxy("sample/veryHighResPhoto2.jpeg");
Image highResolutionImage3 = new ImageProxy("sample/veryHighResPhoto3.jpeg");
highResolutionImage1.showImage(jean);
highResolutionImage2.showImage(paul);
highResolutionImage3.showImage(pierre);
}
}