added lab11 ex1

This commit is contained in:
2024-11-04 12:54:46 +01:00
parent f37a8cd665
commit 475afc0db5
7 changed files with 89 additions and 0 deletions

View File

@ -0,0 +1,8 @@
package lab11_flyweight.ex1;
public class Pencil implements DrawingTool {
@Override
public void draw(String text) {
System.out.println("Pencil writes some content: " + text);
}
}