2024-10-04 14:15:48 +02:00

15 lines
252 B
Java

package lab1_decorator.ex2;
public class Square extends Shape {
private double size;
public Square(double size) {
this.size = size;
}
@Override
public void draw() {
System.out.println("Drawing a square");
}
}