15 lines
252 B
Java
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");
|
|
}
|
|
}
|