added package diagrams
This commit is contained in:
parent
1f3f189adf
commit
8fadc54ab2
BIN
res/lab1_decorator/ex1.png
Normal file
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
BIN
res/lab1_decorator/ex2.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 155 KiB |
@ -9,6 +9,6 @@ public class Circle extends Shape {
|
||||
|
||||
@Override
|
||||
public void draw() {
|
||||
System.out.println("Drawing a circle");
|
||||
System.out.printf("Drawing a circle of radius %fpx%n", radius);
|
||||
}
|
||||
}
|
||||
|
@ -11,6 +11,6 @@ public class Rectangle extends Shape {
|
||||
|
||||
@Override
|
||||
public void draw() {
|
||||
System.out.println("Drawing a rectangle");
|
||||
System.out.printf("Drawing a rectangle of width %fpx and height %fpx%n", width, height);
|
||||
}
|
||||
}
|
||||
|
@ -9,6 +9,6 @@ public class Square extends Shape {
|
||||
|
||||
@Override
|
||||
public void draw() {
|
||||
System.out.println("Drawing a square");
|
||||
System.out.printf("Drawing a square of size %fpx%n", size);
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user