added package diagrams

This commit is contained in:
Louis Heredero 2024-10-06 20:59:38 +02:00
parent 1f3f189adf
commit 8fadc54ab2
Signed by: HEL
GPG Key ID: 8D83DE470F8544E7
5 changed files with 3 additions and 3 deletions

BIN
res/lab1_decorator/ex1.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 265 KiB

BIN
res/lab1_decorator/ex2.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 155 KiB

View File

@ -9,6 +9,6 @@ public class Circle extends Shape {
@Override @Override
public void draw() { public void draw() {
System.out.println("Drawing a circle"); System.out.printf("Drawing a circle of radius %fpx%n", radius);
} }
} }

View File

@ -11,6 +11,6 @@ public class Rectangle extends Shape {
@Override @Override
public void draw() { public void draw() {
System.out.println("Drawing a rectangle"); System.out.printf("Drawing a rectangle of width %fpx and height %fpx%n", width, height);
} }
} }

View File

@ -9,6 +9,6 @@ public class Square extends Shape {
@Override @Override
public void draw() { public void draw() {
System.out.println("Drawing a square"); System.out.printf("Drawing a square of size %fpx%n", size);
} }
} }