/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */
package Extra;

/**
 *
 * @author felix
 */
public class Circulo {
    private int x;
    private int y;
    private float r;
    
    public Circulo(int unaX, int unaY, float unR) {
        x = unaX;
        y = unaY;
        r = unR;
    }
    
    public float Area() {
        return (float) (Math.PI*r*r);
    }
    
    @Override
    public String toString() {
        return "Circulo de radio = " + r + " con area = " + Area();
    }
}
