package com.itheima;
/**
* @author SAMSUNG
*/
public class Circle extends Shape {
private int radius;
public void Circle()
{
}
public void Circle(int r)
{
this.radius=r;
}
@Override
public double getArea()
{
return 3.14*this.radius*this.radius;
}
public void setRadius(int r)
{
this.radius=r;
}
public static void main(String[] args)
{
Circle c1= new Circle();
c1.setRadius(2);
System.out.println("圆的面积"+c1.getArea());
}
}