import java.awt.*;

public class RandKreis extends Kreis {
    private Color randFarbe;

    public RandKreis(int x, int y, int r , Color f, Color rf){
        super( x, y, r, f);
        this.randFarbe = rf;
    }

    public void zeichneDich(Graphics g){
    g.setColor(randFarbe);
    g.fillOval(x - radius - 2, y - radius - 2, 2 * radius + 4, 2 * radius + 4);
    super.zeichneDich(g);
    }
}