import java.awt.*;


public class Kreis extends Figur{
  protected int r;
  
  public Kreis(int x ,int y, int r, Color color){
          super(x,y,color);
          this.r = r;
     }
  public void draw(Graphics g){
        super.draw(g);
        g.fillOval(x-r,y-r,r*2,r*2);
        }
    @Override
    public boolean enthaeltPunkt(int x, int y) {
         return (x -this.x) * (x - this.x) + (y- this.y) * (y - this.y) <= r*r;
    }

} // end of class Kreis
