Semester_2/OOP/Lab_06/Exercise4/Shape.java
<reponame>anhkhoakz/TDTU<filename>Semester_2/OOP/Lab_06/Exercise4/Shape.javapublic class Shape {
    protected String color = "red";
    protected boolean filled = true;

    public Shape() {
    }

    public Shape(String color, boolean filled) {
        this.color = color;
        this.filled = filled;
    }

    public String getColor() {
        return this.color;
    }

    public void setColor(String color) {
        this.color = color;
    }

    public boolean isFilled() {
        return this.filled;
    }

    public void setFilled(boolean filled) {
        this.filled = filled;
    }

    @Override
    public String toString() {
        return "Shape[color = " + this.color + ", filled = " + this.filled + "]";
    }
}