class Circle{
private double radius;
Circle (double r){
radius=r;
}
Circle(){
radius=1;
}
Circle(Circle c){
radius=c.radius;
}
public void setRadius(double r){
radius=r;
}
public double getRadius(){
return radius;
}
public double getCirc(){
double t;
t=Math.PI*radius*2;
return t;
}
public double getArea(){
double t;
t=Math.PI*radius*radius;
return t;
}
}
class Example1{
public static void main(String args[]){
Circle c1=new Circle();
Circle c2=new Circle(5);
Circle c3=new Circle(c1);
System.out.println(c1.getCirc());
System.out.println(c2.getCirc());
System.out.println(c3.getCirc());
}
}