added package diagrams
This commit is contained in:
5 files changed
+3
-3
No files matched your search
Binary file not shown.
|
After Width: | Height: | Size: 265 KiB |
Binary file not shown.
|
After Width: | Height: | Size: 155 KiB |
@@ -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);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -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);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -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);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
Reference in new issue
Block a user